#662972#662972
#662972 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.0% C 0.132 H 320.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).
Color values
| HEX | #662972 |
|---|---|
| RGB | rgb(102, 41, 114) |
| HSL | hsl(290, 47%, 30%) |
| HSV | hsv(290, 64%, 45%) |
| CMYK | cmyk(10.5%, 64%, 0%, 55.3%) |
| CIE-LAB | lab(28.45, 38.89, -30.02) |
| CIE-LCH | lch(28.45, 49.13, 322.34°) |
| OKLab | oklab(39.98% 0.1023 -0.0836) |
| OKLCH | oklch(39.98% 0.132 320.7) |
| XYZ | xyz(9.3093, 5.6260, 16.5119) |
| Luminance | 0.0563 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 3.94
Purple
#800080
ΔE00 6.29
Grape
#6C3461
ΔE00 6.92
Grape Purple
#5D1451
ΔE00 7.32
Darkmagenta
#8B008B
ΔE00 7.81
Rebeccapurple
#663399
ΔE00 7.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662972 #357229
analogous
#412972 #662972 #722959
triadic
#662972 #726629 #297266
tetradic
#662972 #724129 #357229 #295972
square
#662972 #724129 #357229 #295972
split-complementary
#662972 #597229 #297241
monochromatic
#150918 #3E1945 #662972 #8E399F #AF54C1
Accessibility & contrast
On white
9.88
#662972 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#662972 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662972
9.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662972 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662972 | 1.00 | 9.88 | 2.13 | 9.88 |
| #FFFFFF | 9.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#183F74
Deuteranopia (green-blind)
#304570
Tritanopia (blue-blind)
#673549
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #662972; /* rgb */ color: rgb(102, 41, 114); /* oklch */ color: oklch(40.0% 0.132 320.7);
Tailwind
colors: {
custom: {
50: '#94679b',
500: '#662972',
950: '#000000',
},
}SCSS
$custom: #662972; $custom-light: #94679b; $custom-dark: #000000;
JSON
{
"hex": "#662972",
"rgb": {
"r": 102,
"g": 41,
"b": 114
},
"hsl": {
"h": 290.137,
"s": 47.097,
"l": 30.392
},
"oklch": {
"l": 0.3998,
"c": 0.13216,
"h": 320.7
},
"luminance": 0.05626
}Semantic roles & 50–950 ramp
primary
#662972
secondary
#60A453
accent
#D75167
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D060E
muted
#7E7A7E