#8E1F97#8E1F97
#8E1F97 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.197 H 324.7°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).
Color values
| HEX | #8E1F97 |
|---|---|
| RGB | rgb(142, 31, 151) |
| HSL | hsl(296, 66%, 36%) |
| HSV | hsv(296, 79%, 59%) |
| CMYK | cmyk(6%, 79.5%, 0%, 40.8%) |
| CIE-LAB | lab(35.92, 59.19, -40.76) |
| CIE-LCH | lch(35.92, 71.87, 325.45°) |
| OKLab | oklab(47.37% 0.1605 -0.1137) |
| OKLCH | oklch(47.37% 0.197 324.7) |
| XYZ | xyz(17.2308, 8.9663, 30.0953) |
| Luminance | 0.0896 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkmagenta
#8B008B
ΔE00 3.13
Barney Purple
#A00498
ΔE00 3.29
Purple (survey)
#7E1E9C
ΔE00 3.76
Warm Purple
#952E8F
ΔE00 3.79
Purple
#800080
ΔE00 5.18
Barney
#AC1DB8
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E1F97 #28971F
analogous
#521F97 #8E1F97 #971F64
triadic
#8E1F97 #978E1F #1F978E
tetradic
#8E1F97 #97521F #28971F #1F6497
square
#8E1F97 #97521F #28971F #1F6497
split-complementary
#8E1F97 #64971F #1F9752
monochromatic
#2E0A31 #5E1564 #8E1F97 #BE29CA #D254DC
Accessibility & contrast
On white
7.52
#8E1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#8E1F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8E1F97
7.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E1F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E1F97 | 1.00 | 7.52 | 2.79 | 7.52 |
| #FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#395994
Tritanopia (blue-blind)
#91365B
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #8e1f97; /* rgb */ color: rgb(142, 31, 151); /* oklch */ color: oklch(47.4% 0.197 324.7);
Tailwind
colors: {
custom: {
50: '#b369b6',
500: '#8e1f97',
950: '#000000',
},
}SCSS
$custom: #8e1f97; $custom-light: #b369b6; $custom-dark: #000000;
JSON
{
"hex": "#8e1f97",
"rgb": {
"r": 142,
"g": 31,
"b": 151
},
"hsl": {
"h": 295.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.47365,
"c": 0.19666,
"h": 324.7
},
"luminance": 0.08965
}Semantic roles & 50–950 ramp
primary
#8E1F97
secondary
#5BBF52
accent
#E93F4C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80