In RGB color space, #402142 hex color has a red value of 64, a green value of 33 and a blue value of 66.
In CMYK color space (used in color printing), #402142 hex color is composed of 3.03% cyan, 50% magenta, 0% yellow and 74.12% black.
#402142 color has a hue of 296.4 degrees, a saturation of 33.33% and a lightness of 19.4%.
#402142 hex color contains mainly BLUE.
The closest web safe color of #402142 is #333333
#402142 hex color has a decimal value of 4202818.
HEX | 402142 | #402142 |
---|---|---|
RGB | 64, 33, 66 | rgb(64, 33, 66) |
RGB Percent | 25.1, 12.94, 25.88 | rgb(25.1, 12.94, 25.88) |
CMYK | 3, 50, 0, 74 | |
HSL | 296.4°, 33.33, 19.4 | hsl(296.4, 33.33%, 19.4%) |
HSV | 296.4°, 50, 25.9 |
XYZ | 3.642, 2.571, 5.459 |
---|---|
Hunter Lab | 16.034, 12.484, -8.962 |
CIE-LAB | 18.237, 20.994, -14.719 |
CIE-LCH | 18.237, 25.64, 324.966 |
CIE-LUV | 3.03, 50, 0, 74.12 |
Web Safe | 333333 |
RGB percent of color #402142
CMYK percent of color #402142
Text with hexadecimal color #402142
This text has a font color of #402142
<p style="color:#402142">Text here</p>
#402142 Background Color
This box has a background color of #402142
<div style="background-color:#402142">Text here</div>
#402142 Border Color
This box has a border color of #402142
<div style="border: 4px solid #402142">Text here</div>
CSS codes
<p style="color:#402142">Text here</p>
<div style="background-color:#402142">Text here</div>
<div style="border: 4px solid #402142">Text here</div>
#402142 Color on white background
This is how a font and box color of #402142 will look
on a white background.
#402142 Color on black background
This is how a font and box color of #402142 hex color will look
on a black background.