In RGB color space, #402798 hex color has a red value of 64, a green value of 39 and a blue value of 152.
In CMYK color space (used in color printing), #402798 hex color is composed of 57.89% cyan, 74.34% magenta, 0% yellow and 40.39% black.
#402798 color has a hue of 253.3 degrees, a saturation of 59.16% and a lightness of 37.5%.
#402798 hex color contains mainly BLUE.
The closest web safe color of #402798 is #333399
#402798 hex color has a decimal value of 4204440.
HEX | 402798 | #402798 |
---|---|---|
RGB | 64, 39, 152 | rgb(64, 39, 152) |
RGB Percent | 25.1, 15.29, 59.61 | rgb(25.1, 15.29, 59.61) |
CMYK | 58, 74, 0, 40 | |
HSL | 253.3°, 59.16, 37.5 | hsl(253.3, 59.16%, 37.5%) |
HSV | 253.3°, 74.3, 59.6 |
XYZ | 8.507, 4.808, 30.185 |
---|---|
Hunter Lab | 21.927, 30.88, -66.27 |
CIE-LAB | 26.181, 41.844, -57.684 |
CIE-LCH | 26.181, 71.263, 305.957 |
CIE-LUV | 57.89, 74.34, 0, 40.39 |
Web Safe | 333399 |
RGB percent of color #402798
CMYK percent of color #402798
Text with hexadecimal color #402798
This text has a font color of #402798
<p style="color:#402798">Text here</p>
#402798 Background Color
This box has a background color of #402798
<div style="background-color:#402798">Text here</div>
#402798 Border Color
This box has a border color of #402798
<div style="border: 4px solid #402798">Text here</div>
CSS codes
<p style="color:#402798">Text here</p>
<div style="background-color:#402798">Text here</div>
<div style="border: 4px solid #402798">Text here</div>
#402798 Color on white background
This is how a font and box color of #402798 will look
on a white background.
#402798 Color on black background
This is how a font and box color of #402798 hex color will look
on a black background.