#662CC7#662CC7
#662CC7 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.219 H 292.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).
Color values
| HEX | #662CC7 |
|---|---|
| RGB | rgb(102, 44, 199) |
| HSL | hsl(262, 64%, 48%) |
| HSV | hsv(262, 78%, 78%) |
| CMYK | cmyk(48.7%, 77.9%, 0%, 22%) |
| CIE-LAB | lab(35.50, 58.00, -70.33) |
| CIE-LCH | lch(35.50, 91.16, 309.51°) |
| OKLab | oklab(47.03% 0.0852 -0.2019) |
| OKLCH | oklch(47.03% 0.219 292.9) |
| XYZ | xyz(16.6861, 8.7491, 54.8313) |
| Luminance | 0.0875 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.30
Blurple
#5539CC
ΔE00 3.61
Burple
#6832E3
ΔE00 4.05
Blue With A Hint Of Purple
#533CC6
ΔE00 4.25
Bluey Purple
#6241C7
ΔE00 4.33
Purpley Blue
#5F34E7
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662CC7 #8DC72C
analogous
#2C3FC7 #662CC7 #B42CC7
triadic
#662CC7 #C7662C #2CC766
tetradic
#662CC7 #C72C3F #8DC72C #2CC7B4
square
#662CC7 #C72C3F #8DC72C #2CC7B4
split-complementary
#662CC7 #C7B42C #3FC72C
monochromatic
#331663 #4C2195 #662CC7 #8856DA #AB89E5
Accessibility & contrast
On white
7.64
#662CC7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#662CC7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662CC7
7.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662CC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662CC7 | 1.00 | 7.64 | 2.75 | 7.64 |
| #FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055CB
Deuteranopia (green-blind)
#0050C4
Tritanopia (blue-blind)
#475879
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #662cc7; /* rgb */ color: rgb(102, 44, 199); /* oklch */ color: oklch(47.0% 0.219 292.9);
Tailwind
colors: {
custom: {
50: '#9b6cd9',
500: '#662cc7',
950: '#000000',
},
}SCSS
$custom: #662cc7; $custom-light: #9b6cd9; $custom-dark: #000000;
JSON
{
"hex": "#662cc7",
"rgb": {
"r": 102,
"g": 44,
"b": 199
},
"hsl": {
"h": 262.452,
"s": 63.786,
"l": 47.647
},
"oklch": {
"l": 0.47031,
"c": 0.21914,
"h": 292.9
},
"luminance": 0.0875
}Semantic roles & 50–950 ramp
primary
#662CC7
secondary
#B1CF80
accent
#E741A9
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0715
muted
#7F7A83