#402040 Color Information
In a RGB color space, hex #402040 is composed of 25.1% red, 12.5% green and 25.1% blue. Whereas in a CMYK color space, it is composed of 0% cyan, 50% magenta, 0% yellow and 74.9% black. It has a hue angle of 300 degrees, a saturation of 33.3% and a lightness of 18.8%. #402040 color hex could be obtained by blending #804080 with #000000. Closest websafe color is: #333333.
-
- R 25
- G 13
- B 25
-
- C 0
- M 50
- Y 0
- K 75
● #402040 color description : Very dark desaturated magenta.
#402040 Color Conversion
The hexadecimal color #402040 has RGB values of R:64, G:32, B:64 and CMYK values of C:0, M:0.5, Y:0, K:0.75. Its decimal value is 4202560.
Hex triplet | 402040 | #402040 |
---|---|---|
RGB Decimal | 64, 32, 64 | rgb(64,32,64) |
RGB Percent | 25.1, 12.5, 25.1 | rgb(25.1%,12.5%,25.1%) |
CMYK | 0, 50, 0, 75 | |
HSL | 300°, 33.3, 18.8 | hsl(300,33.3%,18.8%) |
HSV (or HSB) | 300°, 50, 25.1 | |
Web Safe | 333333 | #333333 |
CIE-LAB | 17.888, 21.161, -13.873 |
---|---|
XYZ | 3.556, 2.493, 5.144 |
xyY | 0.318, 0.223, 2.493 |
CIE-LCH | 17.888, 25.303, 326.751 |
CIE-LUV | 17.888, 12.656, -16.368 |
Hunter-Lab | 15.79, 12.568, -8.262 |
Binary | 01000000, 00100000, 01000000 |
Color Schemes with #402040
Alternatives to #402040
Below, you can see some colors close to #402040. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.
#402040 Preview
This text has a font color of #402040.
<span style="color:#402040;">Text here</span>
This paragraph has a background color of #402040.
<p style="background-color:#402040;">Content here</p>
This element has a border color of #402040.
<div style="border:1px solid #402040;">Content here</div>
.text {color:#402040;}
.background {background-color:#402040;}
.border {border:1px solid #402040;}
Shades and Tints of #402040
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, #0c060c is the darkest color, while #fefefe is the lightest one.
-
#0c060c
#0c060c
rgb(12,6,12)
-
#190c19
#190c19
rgb(25,12,25)
-
#261326
#261326
rgb(38,19,38)
-
#331933
#331933
rgb(51,25,51)
-
#402040
#402040
rgb(64,32,64)
-
#4d274d
#4d274d
rgb(77,39,77)
-
#5a2d5a
#5a2d5a
rgb(90,45,90)
-
#673467
#673467
rgb(103,52,103)
-
#743a74
#743a74
rgb(116,58,116)
-
#814181
#814181
rgb(129,65,129)
-
#8e478e
#8e478e
rgb(142,71,142)
-
#9c4e9c
#9c4e9c
rgb(156,78,156)
-
#a954a9
#a954a9
rgb(169,84,169)
-
#b061b0
#b061b0
rgb(176,97,176)
-
#b66eb6
#b66eb6
rgb(182,110,182)
-
#bd7bbd
#bd7bbd
rgb(189,123,189)
-
#c388c3
#c388c3
rgb(195,136,195)
-
#ca95ca
#ca95ca
rgb(202,149,202)
-
#d1a2d1
#d1a2d1
rgb(209,162,209)
-
#d7afd7
#d7afd7
rgb(215,175,215)
-
#debcde
#debcde
rgb(222,188,222)
-
#e4c9e4
#e4c9e4
rgb(228,201,228)
-
#ebd6eb
#ebd6eb
rgb(235,214,235)
-
#f1e3f1
#f1e3f1
rgb(241,227,241)
-
#f8f1f8
#f8f1f8
rgb(248,241,248)
-
#fefefe
#fefefe
rgb(254,254,254)
Tones of #402040
A tone is produced by adding gray to any pure hue. In this case, #312f31 is the less saturated color, while #5e025e is the most saturated one.
-
#312f31
#312f31
rgb(49,47,49)
-
#352b35
#352b35
rgb(53,43,53)
-
#392739
#392739
rgb(57,39,57)
-
#3c243c
#3c243c
rgb(60,36,60)
-
#402040
#402040
rgb(64,32,64)
-
#441c44
#441c44
rgb(68,28,68)
-
#471947
#471947
rgb(71,25,71)
-
#4b154b
#4b154b
rgb(75,21,75)
-
#4f114f
#4f114f
rgb(79,17,79)
-
#520e52
#520e52
rgb(82,14,82)
-
#560a56
#560a56
rgb(86,10,86)
-
#5a065a
#5a065a
rgb(90,6,90)
-
#5e025e
#5e025e
rgb(94,2,94)
Color Blindness Simulator
Below, you can see how #402040 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.