#662A8A#662A8A
#662A8A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.156 H 310.0°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).
Color values
| HEX | #662A8A |
|---|---|
| RGB | rgb(102, 42, 138) |
| HSL | hsl(278, 53%, 35%) |
| HSV | hsv(278, 70%, 54%) |
| CMYK | cmyk(26.1%, 69.6%, 0%, 45.9%) |
| CIE-LAB | lab(30.20, 43.76, -42.30) |
| CIE-LCH | lch(30.20, 60.86, 315.97°) |
| OKLab | oklab(41.74% 0.1002 -0.1196) |
| OKLCH | oklch(41.74% 0.156 310) |
| XYZ | xyz(10.8940, 6.3159, 24.6850) |
| Luminance | 0.0632 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.25
Purple (survey)
#7E1E9C
ΔE00 4.87
Darkish Purple
#751973
ΔE00 6.88
Purple
#800080
ΔE00 7.09
Darkmagenta
#8B008B
ΔE00 7.74
Indigo
#4B0082
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662A8A #4E8A2A
analogous
#362A8A #662A8A #8A2A7E
triadic
#662A8A #8A662A #2A8A66
tetradic
#662A8A #8A362A #4E8A2A #2A7E8A
square
#662A8A #8A362A #4E8A2A #2A7E8A
split-complementary
#662A8A #7E8A2A #2A8A36
monochromatic
#210D2C #431C5B #662A8A #8938B9 #A560CF
Accessibility & contrast
On white
9.28
#662A8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#662A8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662A8A
9.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662A8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662A8A | 1.00 | 9.28 | 2.26 | 9.28 |
| #FFFFFF | 9.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#1B4888
Tritanopia (blue-blind)
#613E56
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #662a8a; /* rgb */ color: rgb(102, 42, 138); /* oklch */ color: oklch(41.7% 0.156 310.0);
Tailwind
colors: {
custom: {
50: '#9568ad',
500: '#662a8a',
950: '#000000',
},
}SCSS
$custom: #662a8a; $custom-light: #9568ad; $custom-dark: #000000;
JSON
{
"hex": "#662a8a",
"rgb": {
"r": 102,
"g": 42,
"b": 138
},
"hsl": {
"h": 277.5,
"s": 53.333,
"l": 35.294
},
"oklch": {
"l": 0.41744,
"c": 0.15604,
"h": 310
},
"luminance": 0.06316
}Semantic roles & 50–950 ramp
primary
#662A8A
secondary
#7DB45B
accent
#DD4B82
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F