#662C8A#662C8A
#662C8A is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.153 H 309.7°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).
Color values
| HEX | #662C8A |
|---|---|
| RGB | rgb(102, 44, 138) |
| HSL | hsl(277, 52%, 36%) |
| HSV | hsv(277, 68%, 54%) |
| CMYK | cmyk(26.1%, 68.1%, 0%, 45.9%) |
| CIE-LAB | lab(30.55, 42.78, -41.74) |
| CIE-LCH | lch(30.55, 59.77, 315.71°) |
| OKLab | oklab(42% 0.0979 -0.1179) |
| OKLCH | oklch(42% 0.153 309.7) |
| XYZ | xyz(10.9667, 6.4613, 24.7093) |
| Luminance | 0.0646 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.06
Purple (survey)
#7E1E9C
ΔE00 5.01
Darkish Purple
#751973
ΔE00 7.01
Purple
#800080
ΔE00 7.31
Darkmagenta
#8B008B
ΔE00 7.90
Indigo
#4B0082
ΔE00 8.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662C8A #508A2C
analogous
#372C8A #662C8A #8A2C7F
triadic
#662C8A #8A662C #2C8A66
tetradic
#662C8A #8A372C #508A2C #2C7F8A
square
#662C8A #8A372C #508A2C #2C7F8A
split-complementary
#662C8A #7F8A2C #2C8A37
monochromatic
#210E2D #441D5C #662C8A #883BB8 #A563CD
Accessibility & contrast
On white
9.16
#662C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.29
#662C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662C8A
9.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662C8A | 1.00 | 9.16 | 2.29 | 9.16 |
| #FFFFFF | 9.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#1D4988
Tritanopia (blue-blind)
#614057
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #662c8a; /* rgb */ color: rgb(102, 44, 138); /* oklch */ color: oklch(42.0% 0.153 309.7);
Tailwind
colors: {
custom: {
50: '#956aad',
500: '#662c8a',
950: '#000000',
},
}SCSS
$custom: #662c8a; $custom-light: #956aad; $custom-dark: #000000;
JSON
{
"hex": "#662c8a",
"rgb": {
"r": 102,
"g": 44,
"b": 138
},
"hsl": {
"h": 277.021,
"s": 51.648,
"l": 35.686
},
"oklch": {
"l": 0.41996,
"c": 0.15326,
"h": 309.7
},
"luminance": 0.06461
}Semantic roles & 50–950 ramp
primary
#662C8A
secondary
#7FB45E
accent
#DB4D83
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F