#661798#661798
#661798 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.191 H 307.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).
Color values
| HEX | #661798 |
|---|---|
| RGB | rgb(102, 23, 152) |
| HSL | hsl(277, 74%, 34%) |
| HSV | hsv(277, 85%, 60%) |
| CMYK | cmyk(32.9%, 84.9%, 0%, 40.4%) |
| CIE-LAB | lab(28.65, 54.48, -53.44) |
| CIE-LCH | lch(28.65, 76.31, 315.55°) |
| OKLab | oklab(41% 0.1149 -0.1522) |
| OKLCH | oklch(41% 0.191 307.1) |
| XYZ | xyz(11.4521, 5.7047, 30.1975) |
| Luminance | 0.0570 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.82
Rebeccapurple
#663399
ΔE00 4.86
Indigo
#4B0082
ΔE00 6.04
Violet Blue
#510AC9
ΔE00 7.72
Purple
#800080
ΔE00 7.73
Indigo Blue
#3A18B1
ΔE00 7.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#661798 #499817
analogous
#261798 #661798 #98178A
triadic
#661798 #986617 #179866
tetradic
#661798 #982617 #499817 #178A98
square
#661798 #982617 #499817 #178A98
split-complementary
#661798 #8A9817 #179826
monochromatic
#1F072E #420F63 #661798 #8A1FCD #A646E3
Accessibility & contrast
On white
9.81
#661798 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#661798 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #661798
9.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##661798 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##661798 | 1.00 | 9.81 | 2.14 | 9.81 |
| #FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#5D3B5A
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #661798; /* rgb */ color: rgb(102, 23, 152); /* oklch */ color: oklch(41.0% 0.191 307.1);
Tailwind
colors: {
custom: {
50: '#9760b7',
500: '#661798',
950: '#000000',
},
}SCSS
$custom: #661798; $custom-light: #9760b7; $custom-dark: #000000;
JSON
{
"hex": "#661798",
"rgb": {
"r": 102,
"g": 23,
"b": 152
},
"hsl": {
"h": 276.744,
"s": 73.714,
"l": 34.314
},
"oklch": {
"l": 0.40999,
"c": 0.19066,
"h": 307.1
},
"luminance": 0.05705
}Semantic roles & 50–950 ramp
primary
#661798
secondary
#77C447
accent
#F0377F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80