#662FA3#662FA3
#662FA3 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.177 H 301.0°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).
Color values
| HEX | #662FA3 |
|---|---|
| RGB | rgb(102, 47, 163) |
| HSL | hsl(268, 55%, 41%) |
| HSV | hsv(268, 71%, 64%) |
| CMYK | cmyk(37.4%, 71.2%, 0%, 36.1%) |
| CIE-LAB | lab(32.92, 47.43, -53.17) |
| CIE-LCH | lch(32.92, 71.25, 311.73°) |
| OKLab | oklab(44.28% 0.0912 -0.1516) |
| OKLCH | oklch(44.28% 0.177 301) |
| XYZ | xyz(13.1053, 7.5021, 35.4008) |
| Luminance | 0.0750 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 1.94
Purple (survey)
#7E1E9C
ΔE00 5.48
Purple Blue
#5D21D0
ΔE00 6.71
Bluey Purple
#6241C7
ΔE00 7.06
Blue With A Hint Of Purple
#533CC6
ΔE00 7.14
Blurple
#5539CC
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662FA3 #6CA32F
analogous
#2F32A3 #662FA3 #A02FA3
triadic
#662FA3 #A3662F #2FA366
tetradic
#662FA3 #A32F32 #6CA32F #2FA3A0
square
#662FA3 #A32F32 #6CA32F #2FA3A0
split-complementary
#662FA3 #A3A02F #32A32F
monochromatic
#2B1444 #482173 #662FA3 #8446CA #A475D7
Accessibility & contrast
On white
8.40
#662FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#662FA3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662FA3
8.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662FA3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662FA3 | 1.00 | 8.40 | 2.50 | 8.40 |
| #FFFFFF | 8.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#004DA1
Tritanopia (blue-blind)
#594B66
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #662fa3; /* rgb */ color: rgb(102, 47, 163); /* oklch */ color: oklch(44.3% 0.177 301.0);
Tailwind
colors: {
custom: {
50: '#976cbf',
500: '#662fa3',
950: '#000000',
},
}SCSS
$custom: #662fa3; $custom-light: #976cbf; $custom-dark: #000000;
JSON
{
"hex": "#662fa3",
"rgb": {
"r": 102,
"g": 47,
"b": 163
},
"hsl": {
"h": 268.448,
"s": 55.238,
"l": 41.176
},
"oklch": {
"l": 0.44279,
"c": 0.1769,
"h": 301
},
"luminance": 0.07502
}Semantic roles & 50–950 ramp
primary
#662FA3
secondary
#99BF6F
accent
#DF4998
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81