#661998#661998
#661998 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.189 H 306.9°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #661998 |
|---|---|
| RGB | rgb(102, 25, 152) |
| HSL | hsl(276, 72%, 35%) |
| HSV | hsv(276, 84%, 60%) |
| CMYK | cmyk(32.9%, 83.6%, 0%, 40.4%) |
| CIE-LAB | lab(28.87, 53.85, -53.09) |
| CIE-LCH | lch(28.87, 75.62, 315.41°) |
| OKLab | oklab(41.15% 0.1135 -0.1511) |
| OKLCH | oklch(41.15% 0.189 306.9) |
| XYZ | xyz(11.4934, 5.7872, 30.2112) |
| Luminance | 0.0579 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.62
Purple (survey)
#7E1E9C
ΔE00 4.73
Indigo
#4B0082
ΔE00 6.18
Violet Blue
#510AC9
ΔE00 7.75
Purple
#800080
ΔE00 7.76
Indigo Blue
#3A18B1
ΔE00 7.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#661998 #4B9819
analogous
#271998 #661998 #98198B
triadic
#661998 #986619 #199866
tetradic
#661998 #982719 #4B9819 #198B98
square
#661998 #982719 #4B9819 #198B98
split-complementary
#661998 #8B9819 #199827
monochromatic
#1F082F #431063 #661998 #8922CD #A64AE1
Accessibility & contrast
On white
9.73
#661998 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#661998 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #661998
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##661998 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##661998 | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#5D3C5A
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #661998; /* rgb */ color: rgb(102, 25, 152); /* oklch */ color: oklch(41.1% 0.189 306.9);
Tailwind
colors: {
custom: {
50: '#9761b7',
500: '#661998',
950: '#000000',
},
}SCSS
$custom: #661998; $custom-light: #9761b7; $custom-dark: #000000;
JSON
{
"hex": "#661998",
"rgb": {
"r": 102,
"g": 25,
"b": 152
},
"hsl": {
"h": 276.378,
"s": 71.751,
"l": 34.706
},
"oklch": {
"l": 0.41148,
"c": 0.18901,
"h": 306.9
},
"luminance": 0.05787
}Semantic roles & 50–950 ramp
primary
#661998
secondary
#7AC34A
accent
#EE3981
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80