In RGB color space, #5a42a8 hex color has a red value of 90, a green value of 66 and a blue value of 168.
In CMYK color space (used in color printing), #5a42a8 hex color is composed of 46.43% cyan, 60.71% magenta, 0% yellow and 34.12% black.
#5a42a8 color has a hue of 254.1 degrees, a saturation of 43.59% and a lightness of 45.9%.
#5a42a8 hex color contains mainly BLUE.
The closest web safe color of #5a42a8 is #663399
#5a42a8 hex color has a decimal value of 5915304.
HEX | 5a42a8 | #5a42a8 |
---|---|---|
RGB | 90, 66, 168 | rgb(90, 66, 168) |
RGB Percent | 35.29, 25.88, 65.88 | rgb(35.29, 25.88, 65.88) |
CMYK | 46, 61, 0, 34 | |
HSL | 254.1°, 43.59, 45.9 | hsl(254.1, 43.59%, 45.9%) |
HSV | 254.1°, 60.7, 65.9 |
XYZ | 13.233, 8.897, 38.066 |
---|---|
Hunter Lab | 29.828, 26.992, -54.786 |
CIE-LAB | 35.785, 35.933, -51.608 |
CIE-LCH | 35.785, 62.885, 304.848 |
CIE-LUV | 46.43, 60.71, 0, 34.12 |
Web Safe | 663399 |
RGB percent of color #5a42a8
CMYK percent of color #5a42a8
Text with hexadecimal color #5a42a8
This text has a font color of #5a42a8
<p style="color:#5a42a8">Text here</p>
#5a42a8 Background Color
This box has a background color of #5a42a8
<div style="background-color:#5a42a8">Text here</div>
#5a42a8 Border Color
This box has a border color of #5a42a8
<div style="border: 4px solid #5a42a8">Text here</div>
CSS codes
<p style="color:#5a42a8">Text here</p>
<div style="background-color:#5a42a8">Text here</div>
<div style="border: 4px solid #5a42a8">Text here</div>
#5a42a8 Color on white background
This is how a font and box color of #5a42a8 will look
on a white background.
#5a42a8 Color on black background
This is how a font and box color of #5a42a8 hex color will look
on a black background.