In RGB color space, #402540 hex color has a red value of 64, a green value of 37 and a blue value of 64.
In CMYK color space (used in color printing), #402540 hex color is composed of 0% cyan, 42.19% magenta, 0% yellow and 74.9% black.
#402540 color has a hue of 300 degrees, a saturation of 26.73% and a lightness of 19.8%.
#402540 hex color contains mainly RED.
The closest web safe color of #402540 is #333333
#402540 hex color has a decimal value of 4203840.
HEX | 402540 | #402540 |
---|---|---|
RGB | 64, 37, 64 | rgb(64, 37, 64) |
RGB Percent | 25.1, 14.51, 25.1 | rgb(25.1, 14.51, 25.1) |
CMYK | 0, 42, 0, 75 | |
HSL | 300°, 26.73, 19.8 | hsl(300, 26.73%, 19.8%) |
HSV | 300°, 42.2, 25.1 |
XYZ | 3.701, 2.783, 5.193 |
---|---|
Hunter Lab | 16.682, 10.406, -6.779 |
CIE-LAB | 19.153, 17.95, -11.921 |
CIE-LCH | 19.153, 21.548, 326.411 |
CIE-LUV | 0, 42.19, 0, 74.9 |
Web Safe | 333333 |
RGB percent of color #402540
CMYK percent of color #402540
Text with hexadecimal color #402540
This text has a font color of #402540
<p style="color:#402540">Text here</p>
#402540 Background Color
This box has a background color of #402540
<div style="background-color:#402540">Text here</div>
#402540 Border Color
This box has a border color of #402540
<div style="border: 4px solid #402540">Text here</div>
CSS codes
<p style="color:#402540">Text here</p>
<div style="background-color:#402540">Text here</div>
<div style="border: 4px solid #402540">Text here</div>
#402540 Color on white background
This is how a font and box color of #402540 will look
on a white background.
#402540 Color on black background
This is how a font and box color of #402540 hex color will look
on a black background.