#662EA2#662EA2
#662EA2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.177 H 301.5°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).
Color values
| HEX | #662EA2 |
|---|---|
| RGB | rgb(102, 46, 162) |
| HSL | hsl(269, 56%, 41%) |
| HSV | hsv(269, 72%, 64%) |
| CMYK | cmyk(37%, 71.6%, 0%, 36.5%) |
| CIE-LAB | lab(32.67, 47.66, -52.98) |
| CIE-LCH | lch(32.67, 71.26, 311.98°) |
| OKLab | oklab(44.08% 0.0925 -0.151) |
| OKLCH | oklch(44.08% 0.177 301.5) |
| XYZ | xyz(12.9765, 7.3873, 34.9177) |
| Luminance | 0.0739 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 1.91
Purple (survey)
#7E1E9C
ΔE00 5.33
Purple Blue
#5D21D0
ΔE00 6.82
Bluey Purple
#6241C7
ΔE00 7.31
Blue With A Hint Of Purple
#533CC6
ΔE00 7.36
Blurple
#5539CC
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662EA2 #6AA22E
analogous
#2E30A2 #662EA2 #A02EA2
triadic
#662EA2 #A2662E #2EA266
tetradic
#662EA2 #A22E30 #6AA22E #2EA2A0
square
#662EA2 #A22E30 #6AA22E #2EA2A0
split-complementary
#662EA2 #A2A02E #30A22E
monochromatic
#2A1343 #482072 #662EA2 #8443CA #A373D7
Accessibility & contrast
On white
8.48
#662EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#662EA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662EA2
8.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662EA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662EA2 | 1.00 | 8.48 | 2.48 | 8.48 |
| #FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#594A65
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #662ea2; /* rgb */ color: rgb(102, 46, 162); /* oklch */ color: oklch(44.1% 0.177 301.5);
Tailwind
colors: {
custom: {
50: '#976cbe',
500: '#662ea2',
950: '#000000',
},
}SCSS
$custom: #662ea2; $custom-light: #976cbe; $custom-dark: #000000;
JSON
{
"hex": "#662ea2",
"rgb": {
"r": 102,
"g": 46,
"b": 162
},
"hsl": {
"h": 268.966,
"s": 55.769,
"l": 40.784
},
"oklch": {
"l": 0.44076,
"c": 0.17704,
"h": 301.5
},
"luminance": 0.07387
}Semantic roles & 50–950 ramp
primary
#662EA2
secondary
#97BF6D
accent
#DF4996
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81