#8F2198#8F2198
#8F2198 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.196 H 324.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).
Color values
| HEX | #8F2198 |
|---|---|
| RGB | rgb(143, 33, 152) |
| HSL | hsl(295, 64%, 36%) |
| HSV | hsv(295, 78%, 60%) |
| CMYK | cmyk(5.9%, 78.3%, 0%, 40.4%) |
| CIE-LAB | lab(36.36, 58.98, -40.66) |
| CIE-LCH | lch(36.36, 71.63, 325.42°) |
| OKLab | oklab(47.73% 0.1599 -0.1134) |
| OKLCH | oklch(47.73% 0.196 324.7) |
| XYZ | xyz(17.5386, 9.1955, 30.5508) |
| Luminance | 0.0919 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Barney Purple
#A00498
ΔE00 3.19
Darkmagenta
#8B008B
ΔE00 3.47
Warm Purple
#952E8F
ΔE00 3.57
Purple (survey)
#7E1E9C
ΔE00 3.96
Purple
#800080
ΔE00 5.53
Barney
#AC1DB8
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F2198 #2A9821
analogous
#542198 #8F2198 #982166
triadic
#8F2198 #988F21 #21988F
tetradic
#8F2198 #985421 #2A9821 #216698
square
#8F2198 #985421 #2A9821 #216698
split-complementary
#8F2198 #669821 #219854
monochromatic
#300B33 #601666 #8F2198 #BE2CCA #D159DB
Accessibility & contrast
On white
7.40
#8F2198 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#8F2198 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8F2198
7.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F2198 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F2198 | 1.00 | 7.40 | 2.84 | 7.40 |
| #FFFFFF | 7.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#3A5A95
Tritanopia (blue-blind)
#92385C
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #8f2198; /* rgb */ color: rgb(143, 33, 152); /* oklch */ color: oklch(47.7% 0.196 324.7);
Tailwind
colors: {
custom: {
50: '#b46ab7',
500: '#8f2198',
950: '#000000',
},
}SCSS
$custom: #8f2198; $custom-light: #b46ab7; $custom-dark: #000000;
JSON
{
"hex": "#8f2198",
"rgb": {
"r": 143,
"g": 33,
"b": 152
},
"hsl": {
"h": 295.462,
"s": 64.324,
"l": 36.275
},
"oklch": {
"l": 0.47729,
"c": 0.196,
"h": 324.7
},
"luminance": 0.09194
}Semantic roles & 50–950 ramp
primary
#8F2198
secondary
#5EBF56
accent
#E7404D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80