#402042 Color Information

In a RGB color space, hex #402042 is composed of 25.1% red, 12.5% green and 25.9% blue. Whereas in a CMYK color space, it is composed of 3% cyan, 51.5% magenta, 0% yellow and 74.1% black. It has a hue angle of 296.5 degrees, a saturation of 34.7% and a lightness of 19.2%. #402042 color hex could be obtained by blending #804084 with #000000. Closest websafe color is: #333333.

    • R 25
    • G 13
    • B 26
    RGB color chart
    • C 3
    • M 52
    • Y 0
    • K 74
    CMYK color chart

#402042 color description : Very dark desaturated magenta.

#402042 Color Conversion

The hexadecimal color #402042 has RGB values of R:64, G:32, B:66 and CMYK values of C:0.03, M:0.52, Y:0, K:0.74. Its decimal value is 4202562.

Hex triplet 402042 #402042
RGB Decimal 64, 32, 66 rgb(64,32,66)
RGB Percent 25.1, 12.5, 25.9 rgb(25.1%,12.5%,25.9%)
CMYK 3, 52, 0, 74
HSL 296.5°, 34.7, 19.2 hsl(296.5,34.7%,19.2%)
HSV (or HSB) 296.5°, 51.5, 25.9
Web Safe 333333 #333333
CIE-LAB 17.993, 21.613, -15.095
XYZ 3.614, 2.517, 5.449
xyY 0.312, 0.217, 2.517
CIE-LCH 17.993, 26.363, 325.069
CIE-LUV 17.993, 12.319, -17.749
Hunter-Lab 15.864, 12.906, -9.262
Binary 01000000, 00100000, 01000010

Color Schemes with #402042

Complementary Color
Analogous Color
Split Complementary Color
Triadic Color
Tetradic Color
Monochromatic Color

Alternatives to #402042

Below, you can see some colors close to #402042. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.

Similar Colors

#402042 Preview

Text with hexadecimal color #402042

This text has a font color of #402042.

<span style="color:#402042;">Text here</span>
#402042 background color

This paragraph has a background color of #402042.

<p style="background-color:#402042;">Content here</p>
#402042 border color

This element has a border color of #402042.

<div style="border:1px solid #402042;">Content here</div>
CSS codes
.text {color:#402042;}
.background {background-color:#402042;}
.border {border:1px solid #402042;}

Shades and Tints of #402042

A shade is achieved by adding black to any pure hue, while a tint is created by mixing white to any pure color. In this example, #0d060d is the darkest color, while #ffffff is the lightest one.

Shade Color Variation
Tint Color Variation

Tones of #402042

A tone is produced by adding gray to any pure hue. In this case, #332f33 is the less saturated color, while #5b0260 is the most saturated one.

Tone Color Variation

Color Blindness Simulator

Below, you can see how #402042 is perceived by people affected by a color vision deficiency. This can be useful if you need to ensure your color combinations are accessible to color-blind users.

Monochromacy
  • #2d2d2d Achromatopsia 0.005% of the population
  • #312a31 Atypical Achromatopsia 0.001% of the population
Dichromacy
  • #2b3653 Protanopia 1% of men
  • #313648 Deuteranopia 1% of men
  • #463134 Tritanopia 0.001% of the population
Trichromacy
  • #322e4d Protanomaly 1% of men, 0.01% of women
  • #362e46 Deuteranomaly 6% of men, 0.4% of women
  • #442a39 Tritanomaly 0.01% of the population