#662AB3#662AB3
#662AB3 is a mid, vivid violet. Relative luminance 0.077; OKLCH L 45.0% C 0.200 H 297.5°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).
Color values
| HEX | #662AB3 |
|---|---|
| RGB | rgb(102, 42, 179) |
| HSL | hsl(266, 62%, 43%) |
| HSV | hsv(266, 77%, 70%) |
| CMYK | cmyk(43%, 76.5%, 0%, 29.8%) |
| CIE-LAB | lab(33.42, 53.77, -61.94) |
| CIE-LCH | lch(33.42, 82.02, 310.96°) |
| OKLab | oklab(45.04% 0.0924 -0.1773) |
| OKLCH | oklch(45.04% 0.2 297.5) |
| XYZ | xyz(14.4420, 7.7351, 43.3712) |
| Luminance | 0.0774 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 4.20
Rebeccapurple
#663399
ΔE00 4.50
Violet Blue
#510AC9
ΔE00 5.48
Blurple
#5539CC
ΔE00 5.57
Blue With A Hint Of Purple
#533CC6
ΔE00 5.76
Bluey Purple
#6241C7
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662AB3 #77B32A
analogous
#2A33B3 #662AB3 #AA2AB3
triadic
#662AB3 #B3662A #2AB366
tetradic
#662AB3 #B32A33 #77B32A #2AB3AA
square
#662AB3 #B32A33 #77B32A #2AB3AA
split-complementary
#662AB3 #B3AA2A #33B32A
monochromatic
#2E1350 #4A1E81 #662AB3 #8446D4 #A578DF
Accessibility & contrast
On white
8.24
#662AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#662AB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662AB3
8.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662AB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662AB3 | 1.00 | 8.24 | 2.55 | 8.24 |
| #FFFFFF | 8.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#524F6D
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #662ab3; /* rgb */ color: rgb(102, 42, 179); /* oklch */ color: oklch(45.0% 0.200 297.5);
Tailwind
colors: {
custom: {
50: '#996acb',
500: '#662ab3',
950: '#000000',
},
}SCSS
$custom: #662ab3; $custom-light: #996acb; $custom-dark: #000000;
JSON
{
"hex": "#662ab3",
"rgb": {
"r": 102,
"g": 42,
"b": 179
},
"hsl": {
"h": 266.277,
"s": 61.991,
"l": 43.333
},
"oklch": {
"l": 0.45041,
"c": 0.19991,
"h": 297.5
},
"luminance": 0.07735
}Semantic roles & 50–950 ramp
primary
#662AB3
secondary
#A2C772
accent
#E5439E
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0713
muted
#7E7A82