#402C4A#402C4A
#402C4A is a dark, muted purple. Relative luminance 0.034; OKLCH L 33.0% C 0.058 H 313.9°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).
Color values
| HEX | #402C4A |
|---|---|
| RGB | rgb(64, 44, 74) |
| HSL | hsl(280, 25%, 23%) |
| HSV | hsv(280, 41%, 29%) |
| CMYK | cmyk(13.5%, 40.5%, 0%, 71%) |
| CIE-LAB | lab(21.53, 15.73, -15.06) |
| CIE-LCH | lch(21.53, 21.77, 316.24°) |
| OKLab | oklab(32.98% 0.0399 -0.0414) |
| OKLCH | oklch(32.98% 0.058 313.9) |
| XYZ | xyz(4.2509, 3.3858, 6.9068) |
| Luminance | 0.0339 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Eggplant
#380835
ΔE00 9.97
Aubergine
#3D0734
ΔE00 10.41
Dark Purple
#35063E
ΔE00 10.54
Eggplant Purple
#430541
ΔE00 10.66
Grape
#6C3461
ΔE00 10.72
Deep Violet
#490648
ΔE00 10.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#402C4A #364A2C
analogous
#312C4A #402C4A #4A2C45
triadic
#402C4A #4A402C #2C4A40
tetradic
#402C4A #4A312C #364A2C #2C454A
square
#402C4A #4A312C #364A2C #2C454A
split-complementary
#402C4A #454A2C #2C4A31
monochromatic
#110B13 #1F1524 #402C4A #614370 #825A97
Accessibility & contrast
On white
12.52
#402C4A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#402C4A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #402C4A
12.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##402C4A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##402C4A | 1.00 | 12.52 | 1.68 | 12.52 |
| #FFFFFF | 12.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#27324B
Deuteranopia (green-blind)
#2C3449
Tritanopia (blue-blind)
#3F3037
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #402c4a; /* rgb */ color: rgb(64, 44, 74); /* oklch */ color: oklch(33.0% 0.058 313.9);
Tailwind
colors: {
custom: {
50: '#75657c',
500: '#402c4a',
950: '#000000',
},
}SCSS
$custom: #402c4a; $custom-light: #75657c; $custom-dark: #000000;
JSON
{
"hex": "#402c4a",
"rgb": {
"r": 64,
"g": 44,
"b": 74
},
"hsl": {
"h": 280,
"s": 25.424,
"l": 23.137
},
"oklch": {
"l": 0.3298,
"c": 0.05755,
"h": 313.9
},
"luminance": 0.03386
}Semantic roles & 50–950 ramp
primary
#402C4A
secondary
#637C56
accent
#C26685
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#080509
muted
#7B7A7B