In a RGB color space, #5151a2 hex color is composed of 31.8% red, 31.8% green and 63.5% blue. Whereas in a CMYK color space, it is composed of 50% cyan, 50% magenta, 0% yellow and 36.5% black. It has a hue angle of 240 degrees, a saturation of 33.3% and a lightness of 47.6%. #5151a2 color hex could be obtained by blending #a2a2ff with #000045. Closest websafe color is: #666699.
The hexadecimal color #5151a2 has RGB values of R:81, G:81, B:162 and CMYK values of C:0.5, M:0.5, Y:0, K:0.36. Its decimal value is 5329314.
Hex triplet | 5151a2 | #5151a2 |
RGB Decimal | 81, 81, 162 | rgb(81,81,162) |
RGB Percent | 31.8, 31.8, 63.5 | rgb(31.8%,31.8%,63.5%) |
CMYK | 50, 50, 0, 36.5 | |
HSL | 240°, 33.3, 47.6 | hsl(240,33.3%,47.6%) |
HSV(HSB) | 240°, 50, 63.5 | |
Web Safe | 666699 | #669 |
XYZ | 12.857, 10.243, 35.482 |
xyY | 0.219, 0.175, 10.243 |
CIE-LAB | 38.275, 22.727, -44.052 |
CIE-LCH | 38.275, 49.569, 297.289 |
CIE-LUV | 38.275, -4.685, -64.979 |
Hunter-Lab | 32.004, 15.702, -43.329 |
Binary | 01010001, 01010001, 10100010 |
Below, you can see some colors close to #5151a2. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.
This text has a font color of #5151a2.
<span style="color:#5151a2">Text here</span>
This paragraph has a background color of #5151a2.
<p style="background-color:#5151a2;">Content here</p>
This element has a border color of #5151a2.
<div style="border:1px #5151a2;">Content here</div>
.text {color:#5151a2;}
.background {background-color:#5151a2;}
.border {border:1px solid #5151a2;}
.text-shadow {border:1px solid #5151a2;}
A shade is achieved by adding black to any pure hue, while a tint is created by mixing white to any pure color. In this example, #030306 is the darkest color, while #f7f7fb is the lightest one.
A tone is produced by adding gray to any pure hue. In this case, #79797a is the less saturated color, while #0a0ae9 is the most saturated one.