#8E1F98#8E1F98
#8E1F98 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.197 H 324.3°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).
Color values
| HEX | #8E1F98 |
|---|---|
| RGB | rgb(142, 31, 152) |
| HSL | hsl(295, 66%, 36%) |
| HSV | hsv(295, 80%, 60%) |
| CMYK | cmyk(6.6%, 79.6%, 0%, 40.4%) |
| CIE-LAB | lab(35.98, 59.37, -41.27) |
| CIE-LCH | lch(35.98, 72.30, 325.19°) |
| OKLab | oklab(47.43% 0.1604 -0.1152) |
| OKLCH | oklch(47.43% 0.197 324.3) |
| XYZ | xyz(17.3123, 8.9989, 30.5248) |
| Luminance | 0.0900 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkmagenta
#8B008B
ΔE00 3.24
Barney Purple
#A00498
ΔE00 3.35
Purple (survey)
#7E1E9C
ΔE00 3.65
Warm Purple
#952E8F
ΔE00 3.91
Purple
#800080
ΔE00 5.29
Barney
#AC1DB8
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E1F98 #29981F
analogous
#511F98 #8E1F98 #981F65
triadic
#8E1F98 #988E1F #1F988E
tetradic
#8E1F98 #98511F #29981F #1F6598
square
#8E1F98 #98511F #29981F #1F6598
split-complementary
#8E1F98 #65981F #1F9851
monochromatic
#2F0A32 #5F1565 #8E1F98 #BD29CB #D155DC
Accessibility & contrast
On white
7.50
#8E1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#8E1F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8E1F98
7.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E1F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E1F98 | 1.00 | 7.50 | 2.80 | 7.50 |
| #FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#385995
Tritanopia (blue-blind)
#91375C
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #8e1f98; /* rgb */ color: rgb(142, 31, 152); /* oklch */ color: oklch(47.4% 0.197 324.3);
Tailwind
colors: {
custom: {
50: '#b369b7',
500: '#8e1f98',
950: '#000000',
},
}SCSS
$custom: #8e1f98; $custom-light: #b369b7; $custom-dark: #000000;
JSON
{
"hex": "#8e1f98",
"rgb": {
"r": 142,
"g": 31,
"b": 152
},
"hsl": {
"h": 295.041,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.4743,
"c": 0.19745,
"h": 324.3
},
"luminance": 0.08998
}Semantic roles & 50–950 ramp
primary
#8E1F98
secondary
#5CC053
accent
#E93F4D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80