#662EAB#662EAB
#662EAB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.187 H 299.0°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).
Color values
| HEX | #662EAB |
|---|---|
| RGB | rgb(102, 46, 171) |
| HSL | hsl(267, 58%, 43%) |
| HSV | hsv(267, 73%, 67%) |
| CMYK | cmyk(40.4%, 73.1%, 0%, 32.9%) |
| CIE-LAB | lab(33.39, 49.94, -57.22) |
| CIE-LCH | lch(33.39, 75.95, 311.11°) |
| OKLab | oklab(44.81% 0.0907 -0.1635) |
| OKLCH | oklch(44.81% 0.187 299) |
| XYZ | xyz(13.8053, 7.7189, 39.2827) |
| Luminance | 0.0772 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.17
Purple Blue
#5D21D0
ΔE00 5.48
Purple (survey)
#7E1E9C
ΔE00 6.02
Bluey Purple
#6241C7
ΔE00 6.18
Blue With A Hint Of Purple
#533CC6
ΔE00 6.19
Blurple
#5539CC
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662EAB #73AB2E
analogous
#2E34AB #662EAB #A52EAB
triadic
#662EAB #AB662E #2EAB66
tetradic
#662EAB #AB2E34 #73AB2E #2EABA5
square
#662EAB #AB2E34 #73AB2E #2EABA5
split-complementary
#662EAB #ABA52E #34AB2E
monochromatic
#2C144B #49217B #662EAB #8448CE #A579DB
Accessibility & contrast
On white
8.26
#662EAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#662EAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662EAB
8.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662EAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662EAB | 1.00 | 8.26 | 2.54 | 8.26 |
| #FFFFFF | 8.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#554D6A
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #662eab; /* rgb */ color: rgb(102, 46, 171); /* oklch */ color: oklch(44.8% 0.187 299.0);
Tailwind
colors: {
custom: {
50: '#986cc5',
500: '#662eab',
950: '#000000',
},
}SCSS
$custom: #662eab; $custom-light: #986cc5; $custom-dark: #000000;
JSON
{
"hex": "#662eab",
"rgb": {
"r": 102,
"g": 46,
"b": 171
},
"hsl": {
"h": 266.88,
"s": 57.604,
"l": 42.549
},
"oklch": {
"l": 0.44809,
"c": 0.18693,
"h": 299
},
"luminance": 0.07719
}Semantic roles & 50–950 ramp
primary
#662EAB
secondary
#9FC372
accent
#E1479C
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82