In RGB color space, #5a42a2 hex color has a red value of 90, a green value of 66 and a blue value of 162.
In CMYK color space (used in color printing), #5a42a2 hex color is composed of 44.44% cyan, 59.26% magenta, 0% yellow and 36.47% black.
#5a42a2 color has a hue of 255 degrees, a saturation of 42.11% and a lightness of 44.7%.
#5a42a2 hex color contains mainly BLUE.
The closest web safe color of #5a42a2 is #663399
#5a42a2 hex color has a decimal value of 5915298.
HEX | 5a42a2 | #5a42a2 |
---|---|---|
RGB | 90, 66, 162 | rgb(90, 66, 162) |
RGB Percent | 35.29, 25.88, 63.53 | rgb(35.29, 25.88, 63.53) |
CMYK | 44, 59, 0, 36 | |
HSL | 255°, 42.11, 44.7 | hsl(255, 42.11%, 44.7%) |
HSV | 255°, 59.3, 63.5 |
XYZ | 12.686, 8.679, 35.189 |
---|---|
Hunter Lab | 29.46, 25.31, -50.198 |
CIE-LAB | 35.359, 34.15, -48.7 |
CIE-LCH | 35.359, 59.48, 305.039 |
CIE-LUV | 44.44, 59.26, 0, 36.47 |
Web Safe | 663399 |
RGB percent of color #5a42a2
CMYK percent of color #5a42a2
Text with hexadecimal color #5a42a2
This text has a font color of #5a42a2
<p style="color:#5a42a2">Text here</p>
#5a42a2 Background Color
This box has a background color of #5a42a2
<div style="background-color:#5a42a2">Text here</div>
#5a42a2 Border Color
This box has a border color of #5a42a2
<div style="border: 4px solid #5a42a2">Text here</div>
CSS codes
<p style="color:#5a42a2">Text here</p>
<div style="background-color:#5a42a2">Text here</div>
<div style="border: 4px solid #5a42a2">Text here</div>
#5a42a2 Color on white background
This is how a font and box color of #5a42a2 will look
on a white background.
#5a42a2 Color on black background
This is how a font and box color of #5a42a2 hex color will look
on a black background.