#662EA6#662EA6
#662EA6 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.181 H 300.4°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).
Color values
| HEX | #662EA6 |
|---|---|
| RGB | rgb(102, 46, 166) |
| HSL | hsl(268, 57%, 42%) |
| HSV | hsv(268, 72%, 65%) |
| CMYK | cmyk(38.6%, 72.3%, 0%, 34.9%) |
| CIE-LAB | lab(32.99, 48.67, -54.88) |
| CIE-LCH | lch(32.99, 73.35, 311.57°) |
| OKLab | oklab(44.4% 0.0917 -0.1566) |
| OKLCH | oklch(44.4% 0.181 300.4) |
| XYZ | xyz(13.3377, 7.5318, 36.8201) |
| Luminance | 0.0753 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.46
Purple (survey)
#7E1E9C
ΔE00 5.61
Purple Blue
#5D21D0
ΔE00 6.21
Bluey Purple
#6241C7
ΔE00 6.79
Blue With A Hint Of Purple
#533CC6
ΔE00 6.82
Blurple
#5539CC
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662EA6 #6EA62E
analogous
#2E32A6 #662EA6 #A22EA6
triadic
#662EA6 #A6662E #2EA666
tetradic
#662EA6 #A62E32 #6EA62E #2EA6A2
square
#662EA6 #A62E32 #6EA62E #2EA6A2
split-complementary
#662EA6 #A6A22E #32A62E
monochromatic
#2B1346 #492176 #662EA6 #8446CC #A476D9
Accessibility & contrast
On white
8.38
#662EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#662EA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662EA6
8.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662EA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662EA6 | 1.00 | 8.38 | 2.51 | 8.38 |
| #FFFFFF | 8.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#584B67
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #662ea6; /* rgb */ color: rgb(102, 46, 166); /* oklch */ color: oklch(44.4% 0.181 300.4);
Tailwind
colors: {
custom: {
50: '#976cc1',
500: '#662ea6',
950: '#000000',
},
}SCSS
$custom: #662ea6; $custom-light: #976cc1; $custom-dark: #000000;
JSON
{
"hex": "#662ea6",
"rgb": {
"r": 102,
"g": 46,
"b": 166
},
"hsl": {
"h": 268,
"s": 56.604,
"l": 41.569
},
"oklch": {
"l": 0.44398,
"c": 0.18144,
"h": 300.4
},
"luminance": 0.07532
}Semantic roles & 50–950 ramp
primary
#662EA6
secondary
#9BC16F
accent
#E04899
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81