#662F96#662F96
#662F96 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.162 H 305.0°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).
Color values
| HEX | #662F96 |
|---|---|
| RGB | rgb(102, 47, 150) |
| HSL | hsl(272, 52%, 39%) |
| HSV | hsv(272, 69%, 59%) |
| CMYK | cmyk(32%, 68.7%, 0%, 41.2%) |
| CIE-LAB | lab(31.94, 44.18, -46.87) |
| CIE-LCH | lch(31.94, 64.41, 313.31°) |
| OKLab | oklab(43.27% 0.0931 -0.133) |
| OKLCH | oklch(43.27% 0.162 305) |
| XYZ | xyz(11.9998, 7.0599, 29.5788) |
| Luminance | 0.0706 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 1.01
Purple (survey)
#7E1E9C
ΔE00 4.95
Darkslateblue
#483D8B
ΔE00 7.83
Ocean Blue
#4F42B5
ΔE00 8.74
Purple
#800080
ΔE00 8.77
Indigo
#4B0082
ΔE00 8.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662F96 #5F962F
analogous
#322F96 #662F96 #962F92
triadic
#662F96 #96662F #2F9666
tetradic
#662F96 #96322F #5F962F #2F9296
square
#662F96 #96322F #5F962F #2F9296
split-complementary
#662F96 #92962F #2F9632
monochromatic
#271239 #462067 #662F96 #863FC3 #A36ED2
Accessibility & contrast
On white
8.71
#662F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#662F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662F96
8.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662F96 | 1.00 | 8.71 | 2.41 | 8.71 |
| #FFFFFF | 8.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A99
Deuteranopia (green-blind)
#0C4B94
Tritanopia (blue-blind)
#5D465E
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #662f96; /* rgb */ color: rgb(102, 47, 150); /* oklch */ color: oklch(43.3% 0.162 305.0);
Tailwind
colors: {
custom: {
50: '#966cb6',
500: '#662f96',
950: '#000000',
},
}SCSS
$custom: #662f96; $custom-light: #966cb6; $custom-dark: #000000;
JSON
{
"hex": "#662f96",
"rgb": {
"r": 102,
"g": 47,
"b": 150
},
"hsl": {
"h": 272.039,
"s": 52.284,
"l": 38.627
},
"oklch": {
"l": 0.43269,
"c": 0.16239,
"h": 305
},
"luminance": 0.0706
}Semantic roles & 50–950 ramp
primary
#662F96
secondary
#8EB968
accent
#DC4C8F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80