#661B98#661B98
#661B98 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.187 H 306.7°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).
Color values
| HEX | #661B98 |
|---|---|
| RGB | rgb(102, 27, 152) |
| HSL | hsl(276, 70%, 35%) |
| HSV | hsv(276, 82%, 60%) |
| CMYK | cmyk(32.9%, 82.2%, 0%, 40.4%) |
| CIE-LAB | lab(29.10, 53.19, -52.71) |
| CIE-LCH | lch(29.10, 74.88, 315.26°) |
| OKLab | oklab(41.31% 0.112 -0.1501) |
| OKLCH | oklch(41.31% 0.187 306.7) |
| XYZ | xyz(11.5377, 5.8758, 30.2260) |
| Luminance | 0.0588 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.36
Purple (survey)
#7E1E9C
ΔE00 4.65
Indigo
#4B0082
ΔE00 6.33
Violet Blue
#510AC9
ΔE00 7.79
Purple
#800080
ΔE00 7.79
Indigo Blue
#3A18B1
ΔE00 7.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#661B98 #4D981B
analogous
#281B98 #661B98 #981B8B
triadic
#661B98 #98661B #1B9866
tetradic
#661B98 #98281B #4D981B #1B8B98
square
#661B98 #98281B #4D981B #1B8B98
split-complementary
#661B98 #8B981B #1B9828
monochromatic
#200930 #431264 #661B98 #8924CC #A54EE0
Accessibility & contrast
On white
9.65
#661B98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#661B98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #661B98
9.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##661B98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##661B98 | 1.00 | 9.65 | 2.18 | 9.65 |
| #FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#5D3D5B
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #661b98; /* rgb */ color: rgb(102, 27, 152); /* oklch */ color: oklch(41.3% 0.187 306.7);
Tailwind
colors: {
custom: {
50: '#9762b7',
500: '#661b98',
950: '#000000',
},
}SCSS
$custom: #661b98; $custom-light: #9762b7; $custom-dark: #000000;
JSON
{
"hex": "#661b98",
"rgb": {
"r": 102,
"g": 27,
"b": 152
},
"hsl": {
"h": 276,
"s": 69.832,
"l": 35.098
},
"oklch": {
"l": 0.41306,
"c": 0.18726,
"h": 306.7
},
"luminance": 0.05876
}Semantic roles & 50–950 ramp
primary
#661B98
secondary
#7CC24D
accent
#ED3B82
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80