#8C2198#8C2198
#8C2198 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.3% C 0.195 H 323.5°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).
Color values
| HEX | #8C2198 |
|---|---|
| RGB | rgb(140, 33, 152) |
| HSL | hsl(294, 64%, 36%) |
| HSV | hsv(294, 78%, 60%) |
| CMYK | cmyk(7.9%, 78.3%, 0%, 40.4%) |
| CIE-LAB | lab(35.85, 58.36, -41.50) |
| CIE-LCH | lch(35.85, 71.61, 324.58°) |
| OKLab | oklab(47.27% 0.1564 -0.1159) |
| OKLCH | oklch(47.27% 0.195 323.5) |
| XYZ | xyz(17.0261, 8.9312, 30.5268) |
| Luminance | 0.0893 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.34
Darkmagenta
#8B008B
ΔE00 3.36
Barney Purple
#A00498
ΔE00 3.74
Warm Purple
#952E8F
ΔE00 4.08
Purple
#800080
ΔE00 5.28
Barney
#AC1DB8
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C2198 #2D9821
analogous
#512198 #8C2198 #982169
triadic
#8C2198 #988C21 #21988C
tetradic
#8C2198 #985121 #2D9821 #216998
square
#8C2198 #985121 #2D9821 #216998
split-complementary
#8C2198 #699821 #219851
monochromatic
#2F0B33 #5E1666 #8C2198 #BA2CCA #CE59DB
Accessibility & contrast
On white
7.54
#8C2198 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#8C2198 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8C2198
7.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C2198 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C2198 | 1.00 | 7.54 | 2.79 | 7.54 |
| #FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#375895
Tritanopia (blue-blind)
#8E385C
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #8c2198; /* rgb */ color: rgb(140, 33, 152); /* oklch */ color: oklch(47.3% 0.195 323.5);
Tailwind
colors: {
custom: {
50: '#b16ab7',
500: '#8c2198',
950: '#000000',
},
}SCSS
$custom: #8c2198; $custom-light: #b16ab7; $custom-dark: #000000;
JSON
{
"hex": "#8c2198",
"rgb": {
"r": 140,
"g": 33,
"b": 152
},
"hsl": {
"h": 293.95,
"s": 64.324,
"l": 36.275
},
"oklch": {
"l": 0.47272,
"c": 0.1947,
"h": 323.5
},
"luminance": 0.0893
}Semantic roles & 50–950 ramp
primary
#8C2198
secondary
#60BF56
accent
#E74051
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80