#662CC2#662CC2
#662CC2 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.6% C 0.214 H 293.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).
Color values
| HEX | #662CC2 |
|---|---|
| RGB | rgb(102, 44, 194) |
| HSL | hsl(263, 63%, 47%) |
| HSV | hsv(263, 77%, 76%) |
| CMYK | cmyk(47.4%, 77.3%, 0%, 23.9%) |
| CIE-LAB | lab(35.04, 56.72, -68.15) |
| CIE-LCH | lch(35.04, 88.66, 309.77°) |
| OKLab | oklab(46.58% 0.0867 -0.1955) |
| OKLCH | oklch(46.58% 0.214 293.9) |
| XYZ | xyz(16.1151, 8.5207, 51.8241) |
| Luminance | 0.0852 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.63
Blurple
#5539CC
ΔE00 3.92
Blue With A Hint Of Purple
#533CC6
ΔE00 4.43
Bluey Purple
#6241C7
ΔE00 4.54
Burple
#6832E3
ΔE00 4.70
Violet Blue
#510AC9
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662CC2 #88C22C
analogous
#2C3DC2 #662CC2 #B12CC2
triadic
#662CC2 #C2662C #2CC266
tetradic
#662CC2 #C22C3D #88C22C #2CC2B1
square
#662CC2 #C22C3D #88C22C #2CC2B1
split-complementary
#662CC2 #C2B12C #3DC22C
monochromatic
#32155E #4C2190 #662CC2 #8753D8 #AA85E3
Accessibility & contrast
On white
7.77
#662CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#662CC2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662CC2
7.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662CC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662CC2 | 1.00 | 7.77 | 2.70 | 7.77 |
| #FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#4A5676
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #662cc2; /* rgb */ color: rgb(102, 44, 194); /* oklch */ color: oklch(46.6% 0.214 293.9);
Tailwind
colors: {
custom: {
50: '#9b6cd6',
500: '#662cc2',
950: '#000000',
},
}SCSS
$custom: #662cc2; $custom-light: #9b6cd6; $custom-dark: #000000;
JSON
{
"hex": "#662cc2",
"rgb": {
"r": 102,
"g": 44,
"b": 194
},
"hsl": {
"h": 263.2,
"s": 63.025,
"l": 46.667
},
"oklch": {
"l": 0.46578,
"c": 0.21385,
"h": 293.9
},
"luminance": 0.08521
}Semantic roles & 50–950 ramp
primary
#662CC2
secondary
#AECD7D
accent
#E642A7
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#0F0714
muted
#7F7A83