In RGB color space, #402040 hex color has a red value of 64, a green value of 32 and a blue value of 64.
In CMYK color space (used in color printing), #402040 hex color is composed of 0% cyan, 50% magenta, 0% yellow and 74.9% black.
#402040 color has a hue of 300 degrees, a saturation of 33.33% and a lightness of 18.8%.
#402040 hex color contains mainly RED.
The closest web safe color of #402040 is #333333
#402040 hex color has a decimal value of 4202560.
HEX | 402040 | #402040 |
---|---|---|
RGB | 64, 32, 64 | rgb(64, 32, 64) |
RGB Percent | 25.1, 12.55, 25.1 | rgb(25.1, 12.55, 25.1) |
CMYK | 0, 50, 0, 75 | |
HSL | 300°, 33.33, 18.8 | hsl(300, 33.33%, 18.8%) |
HSV | 300°, 50, 25.1 |
XYZ | 3.556, 2.493, 5.144 |
---|---|
Hunter Lab | 15.789, 12.57, -8.264 |
CIE-LAB | 17.887, 21.165, -13.875 |
CIE-LCH | 17.887, 25.308, 326.753 |
CIE-LUV | 0, 50, 0, 74.9 |
Web Safe | 333333 |
RGB percent of color #402040
CMYK percent of color #402040
Text with hexadecimal color #402040
This text has a font color of #402040
<p style="color:#402040">Text here</p>
#402040 Background Color
This box has a background color of #402040
<div style="background-color:#402040">Text here</div>
#402040 Border Color
This box has a border color of #402040
<div style="border: 4px solid #402040">Text here</div>
CSS codes
<p style="color:#402040">Text here</p>
<div style="background-color:#402040">Text here</div>
<div style="border: 4px solid #402040">Text here</div>
#402040 Color on white background
This is how a font and box color of #402040 will look
on a white background.
#402040 Color on black background
This is how a font and box color of #402040 hex color will look
on a black background.