In RGB color space, #5f42a2 hex color has a red value of 95, a green value of 66 and a blue value of 162.
In CMYK color space (used in color printing), #5f42a2 hex color is composed of 41.36% cyan, 59.26% magenta, 0% yellow and 36.47% black.
#5f42a2 color has a hue of 258.1 degrees, a saturation of 42.11% and a lightness of 44.7%.
#5f42a2 hex color contains mainly BLUE.
The closest web safe color of #5f42a2 is #663399
#5f42a2 hex color has a decimal value of 6242978.
HEX | 5f42a2 | #5f42a2 |
---|---|---|
RGB | 95, 66, 162 | rgb(95, 66, 162) |
RGB Percent | 37.25, 25.88, 63.53 | rgb(37.25, 25.88, 63.53) |
CMYK | 41, 59, 0, 36 | |
HSL | 258.1°, 42.11, 44.7 | hsl(258.1, 42.11%, 44.7%) |
HSV | 258.1°, 59.3, 63.5 |
XYZ | 13.189, 8.938, 35.212 |
---|---|
Hunter Lab | 29.896, 26.427, -48.904 |
CIE-LAB | 35.865, 35.303, -47.858 |
CIE-LCH | 35.865, 59.47, 306.415 |
CIE-LUV | 41.36, 59.26, 0, 36.47 |
Web Safe | 663399 |
RGB percent of color #5f42a2
CMYK percent of color #5f42a2
Text with hexadecimal color #5f42a2
This text has a font color of #5f42a2
<p style="color:#5f42a2">Text here</p>
#5f42a2 Background Color
This box has a background color of #5f42a2
<div style="background-color:#5f42a2">Text here</div>
#5f42a2 Border Color
This box has a border color of #5f42a2
<div style="border: 4px solid #5f42a2">Text here</div>
CSS codes
<p style="color:#5f42a2">Text here</p>
<div style="background-color:#5f42a2">Text here</div>
<div style="border: 4px solid #5f42a2">Text here</div>
#5f42a2 Color on white background
This is how a font and box color of #5f42a2 will look
on a white background.
#5f42a2 Color on black background
This is how a font and box color of #5f42a2 hex color will look
on a black background.