In RGB color space, #5a42a5 hex color has a red value of 90, a green value of 66 and a blue value of 165.
In CMYK color space (used in color printing), #5a42a5 hex color is composed of 45.45% cyan, 60% magenta, 0% yellow and 35.29% black.
#5a42a5 color has a hue of 254.5 degrees, a saturation of 42.86% and a lightness of 45.3%.
#5a42a5 hex color contains mainly BLUE.
The closest web safe color of #5a42a5 is #663399
#5a42a5 hex color has a decimal value of 5915301.
HEX | 5a42a5 | #5a42a5 |
---|---|---|
RGB | 90, 66, 165 | rgb(90, 66, 165) |
RGB Percent | 35.29, 25.88, 64.71 | rgb(35.29, 25.88, 64.71) |
CMYK | 45, 60, 0, 35 | |
HSL | 254.5°, 42.86, 45.3 | hsl(254.5, 42.86%, 45.3%) |
HSV | 254.5°, 60, 64.7 |
XYZ | 12.956, 8.787, 36.61 |
---|---|
Hunter Lab | 29.643, 26.142, -52.475 |
CIE-LAB | 35.571, 35.036, -50.158 |
CIE-LCH | 35.571, 61.183, 304.935 |
CIE-LUV | 45.45, 60, 0, 35.29 |
Web Safe | 663399 |
RGB percent of color #5a42a5
CMYK percent of color #5a42a5
Text with hexadecimal color #5a42a5
This text has a font color of #5a42a5
<p style="color:#5a42a5">Text here</p>
#5a42a5 Background Color
This box has a background color of #5a42a5
<div style="background-color:#5a42a5">Text here</div>
#5a42a5 Border Color
This box has a border color of #5a42a5
<div style="border: 4px solid #5a42a5">Text here</div>
CSS codes
<p style="color:#5a42a5">Text here</p>
<div style="background-color:#5a42a5">Text here</div>
<div style="border: 4px solid #5a42a5">Text here</div>
#5a42a5 Color on white background
This is how a font and box color of #5a42a5 will look
on a white background.
#5a42a5 Color on black background
This is how a font and box color of #5a42a5 hex color will look
on a black background.