#662197#662197
#662197 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.180 H 306.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).
Color values
| HEX | #662197 |
|---|---|
| RGB | rgb(102, 33, 151) |
| HSL | hsl(275, 64%, 36%) |
| HSV | hsv(275, 78%, 59%) |
| CMYK | cmyk(32.5%, 78.1%, 0%, 40.8%) |
| CIE-LAB | lab(29.78, 50.74, -50.99) |
| CIE-LCH | lch(29.78, 71.93, 314.86°) |
| OKLab | oklab(41.76% 0.1073 -0.1451) |
| OKLCH | oklch(41.76% 0.18 306.5) |
| XYZ | xyz(11.6080, 6.1470, 29.8471) |
| Luminance | 0.0615 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.50
Purple (survey)
#7E1E9C
ΔE00 4.46
Indigo
#4B0082
ΔE00 6.85
Purple
#800080
ΔE00 7.85
Violet Blue
#510AC9
ΔE00 8.14
Indigo Blue
#3A18B1
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662197 #529721
analogous
#2B2197 #662197 #97218D
triadic
#662197 #976621 #219766
tetradic
#662197 #972B21 #529721 #218D97
square
#662197 #972B21 #529721 #218D97
split-complementary
#662197 #8D9721 #21972B
monochromatic
#220B33 #441665 #662197 #882CC9 #A458DA
Accessibility & contrast
On white
9.42
#662197 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#662197 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662197
9.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662197 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662197 | 1.00 | 9.42 | 2.23 | 9.42 |
| #FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#5D3F5B
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #662197; /* rgb */ color: rgb(102, 33, 151); /* oklch */ color: oklch(41.8% 0.180 306.5);
Tailwind
colors: {
custom: {
50: '#9764b6',
500: '#662197',
950: '#000000',
},
}SCSS
$custom: #662197; $custom-light: #9764b6; $custom-dark: #000000;
JSON
{
"hex": "#662197",
"rgb": {
"r": 102,
"g": 33,
"b": 151
},
"hsl": {
"h": 275.085,
"s": 64.13,
"l": 36.078
},
"oklch": {
"l": 0.41759,
"c": 0.18042,
"h": 306.5
},
"luminance": 0.06147
}Semantic roles & 50–950 ramp
primary
#662197
secondary
#81BE55
accent
#E74186
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80