#662FAE#662FAE
#662FAE is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.189 H 298.1°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).
Color values
| HEX | #662FAE |
|---|---|
| RGB | rgb(102, 47, 174) |
| HSL | hsl(266, 57%, 43%) |
| HSV | hsv(266, 73%, 68%) |
| CMYK | cmyk(41.4%, 73%, 0%, 31.8%) |
| CIE-LAB | lab(33.80, 50.23, -58.34) |
| CIE-LCH | lch(33.80, 76.99, 310.73°) |
| OKLab | oklab(45.18% 0.0891 -0.1668) |
| OKLCH | oklch(45.18% 0.189 298.1) |
| XYZ | xyz(14.1340, 7.9136, 40.8190) |
| Luminance | 0.0791 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.56
Purple Blue
#5D21D0
ΔE00 5.12
Bluey Purple
#6241C7
ΔE00 5.70
Blurple
#5539CC
ΔE00 5.73
Blue With A Hint Of Purple
#533CC6
ΔE00 5.74
Purple (survey)
#7E1E9C
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662FAE #77AE2F
analogous
#2F38AE #662FAE #A52FAE
triadic
#662FAE #AE662F #2FAE66
tetradic
#662FAE #AE2F38 #77AE2F #2FAEA5
square
#662FAE #AE2F38 #77AE2F #2FAEA5
split-complementary
#662FAE #AEA52F #38AE2F
monochromatic
#2E154E #4A227E #662FAE #844CCF #A57CDC
Accessibility & contrast
On white
8.13
#662FAE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#662FAE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662FAE
8.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662FAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662FAE | 1.00 | 8.13 | 2.58 | 8.13 |
| #FFFFFF | 8.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#004EAB
Tritanopia (blue-blind)
#544F6C
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #662fae; /* rgb */ color: rgb(102, 47, 174); /* oklch */ color: oklch(45.2% 0.189 298.1);
Tailwind
colors: {
custom: {
50: '#986dc7',
500: '#662fae',
950: '#000000',
},
}SCSS
$custom: #662fae; $custom-light: #986dc7; $custom-dark: #000000;
JSON
{
"hex": "#662fae",
"rgb": {
"r": 102,
"g": 47,
"b": 174
},
"hsl": {
"h": 265.984,
"s": 57.466,
"l": 43.333
},
"oklch": {
"l": 0.45176,
"c": 0.18908,
"h": 298.1
},
"luminance": 0.07914
}Semantic roles & 50–950 ramp
primary
#662FAE
secondary
#A2C475
accent
#E1479E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82