#662CB0#662CB0
#662CB0 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.195 H 298.0°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).
Color values
| HEX | #662CB0 |
|---|---|
| RGB | rgb(102, 44, 176) |
| HSL | hsl(266, 60%, 43%) |
| HSV | hsv(266, 75%, 69%) |
| CMYK | cmyk(42%, 75%, 0%, 31%) |
| CIE-LAB | lab(33.48, 52.13, -60.07) |
| CIE-LCH | lch(33.48, 79.53, 310.95°) |
| OKLab | oklab(45% 0.0914 -0.1718) |
| OKLCH | oklch(45% 0.195 298) |
| XYZ | xyz(14.2146, 7.7605, 41.8149) |
| Luminance | 0.0776 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.99
Purple Blue
#5D21D0
ΔE00 4.68
Blurple
#5539CC
ΔE00 5.73
Blue With A Hint Of Purple
#533CC6
ΔE00 5.84
Bluey Purple
#6241C7
ΔE00 5.92
Violet Blue
#510AC9
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662CB0 #76B02C
analogous
#2C34B0 #662CB0 #A82CB0
triadic
#662CB0 #B0662C #2CB066
tetradic
#662CB0 #B02C34 #76B02C #2CB0A8
square
#662CB0 #B02C34 #76B02C #2CB0A8
split-complementary
#662CB0 #B0A82C #34B02C
monochromatic
#2D144E #4A207F #662CB0 #8448D1 #A579DD
Accessibility & contrast
On white
8.23
#662CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#662CB0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662CB0
8.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662CB0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662CB0 | 1.00 | 8.23 | 2.55 | 8.23 |
| #FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FB4
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#534E6C
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #662cb0; /* rgb */ color: rgb(102, 44, 176); /* oklch */ color: oklch(45.0% 0.195 298.0);
Tailwind
colors: {
custom: {
50: '#986bc9',
500: '#662cb0',
950: '#000000',
},
}SCSS
$custom: #662cb0; $custom-light: #986bc9; $custom-dark: #000000;
JSON
{
"hex": "#662cb0",
"rgb": {
"r": 102,
"g": 44,
"b": 176
},
"hsl": {
"h": 266.364,
"s": 60,
"l": 43.137
},
"oklch": {
"l": 0.45,
"c": 0.19461,
"h": 298
},
"luminance": 0.07761
}Semantic roles & 50–950 ramp
primary
#662CB0
secondary
#A1C672
accent
#E3459E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82