In RGB color space, #5f42ab hex color has a red value of 95, a green value of 66 and a blue value of 171.
In CMYK color space (used in color printing), #5f42ab hex color is composed of 44.44% cyan, 61.4% magenta, 0% yellow and 32.94% black.
#5f42ab color has a hue of 256.6 degrees, a saturation of 44.3% and a lightness of 46.5%.
#5f42ab hex color contains mainly BLUE.
The closest web safe color of #5f42ab is #663399
#5f42ab hex color has a decimal value of 6242987.
HEX | 5f42ab | #5f42ab |
---|---|---|
RGB | 95, 66, 171 | rgb(95, 66, 171) |
RGB Percent | 37.25, 25.88, 67.06 | rgb(37.25, 25.88, 67.06) |
CMYK | 44, 61, 0, 33 | |
HSL | 256.6°, 44.3, 46.5 | hsl(256.6, 44.3%, 46.5%) |
HSV | 256.6°, 61.4, 67.1 |
XYZ | 14.018, 9.27, 39.578 |
---|---|
Hunter Lab | 30.447, 28.902, -55.759 |
CIE-LAB | 36.499, 37.883, -52.219 |
CIE-LCH | 36.499, 64.513, 305.96 |
CIE-LUV | 44.44, 61.4, 0, 32.94 |
Web Safe | 663399 |
RGB percent of color #5f42ab
CMYK percent of color #5f42ab
Text with hexadecimal color #5f42ab
This text has a font color of #5f42ab
<p style="color:#5f42ab">Text here</p>
#5f42ab Background Color
This box has a background color of #5f42ab
<div style="background-color:#5f42ab">Text here</div>
#5f42ab Border Color
This box has a border color of #5f42ab
<div style="border: 4px solid #5f42ab">Text here</div>
CSS codes
<p style="color:#5f42ab">Text here</p>
<div style="background-color:#5f42ab">Text here</div>
<div style="border: 4px solid #5f42ab">Text here</div>
#5f42ab Color on white background
This is how a font and box color of #5f42ab will look
on a white background.
#5f42ab Color on black background
This is how a font and box color of #5f42ab hex color will look
on a black background.