#8E1B7C#8E1B7C
#8E1B7C is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.180 H 335.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).
Color values
| HEX | #8E1B7C |
|---|---|
| RGB | rgb(142, 27, 124) |
| HSL | hsl(309, 68%, 33%) |
| HSV | hsv(309, 81%, 56%) |
| CMYK | cmyk(0%, 81%, 12.7%, 44.3%) |
| CIE-LAB | lab(33.96, 55.95, -27.18) |
| CIE-LCH | lch(33.96, 62.20, 334.09°) |
| OKLab | oklab(45.47% 0.164 -0.0743) |
| OKLCH | oklch(45.47% 0.18 335.6) |
| XYZ | xyz(15.1856, 7.9913, 19.8076) |
| Luminance | 0.0799 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkmagenta
#8B008B
ΔE00 4.25
Warm Purple
#952E8F
ΔE00 4.33
Purple
#800080
ΔE00 4.79
Darkish Purple
#751973
ΔE00 5.05
Barney Purple
#A00498
ΔE00 5.19
Red Violet
#9E0168
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E1B7C #1B8E2D
analogous
#661B8E #8E1B7C #8E1B43
triadic
#8E1B7C #7C8E1B #1B7C8E
tetradic
#8E1B7C #8E661B #1B8E2D #1B438E
square
#8E1B7C #8E661B #1B8E2D #1B438E
split-complementary
#8E1B7C #438E1B #1B8E66
monochromatic
#270722 #5B114F #8E1B7C #C125A9 #DC47C5
Accessibility & contrast
On white
8.08
#8E1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.60
#8E1B7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8E1B7C
8.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E1B7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E1B7C | 1.00 | 8.08 | 2.60 | 8.08 |
| #FFFFFF | 8.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C457F
Deuteranopia (green-blind)
#475679
Tritanopia (blue-blind)
#95254B
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #8e1b7c; /* rgb */ color: rgb(142, 27, 124); /* oklch */ color: oklch(45.5% 0.180 335.6);
Tailwind
colors: {
custom: {
50: '#b366a2',
500: '#8e1b7c',
950: '#000000',
},
}SCSS
$custom: #8e1b7c; $custom-light: #b366a2; $custom-dark: #000000;
JSON
{
"hex": "#8e1b7c",
"rgb": {
"r": 142,
"g": 27,
"b": 124
},
"hsl": {
"h": 309.391,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.45469,
"c": 0.17999,
"h": 335.6
},
"luminance": 0.0799
}Semantic roles & 50–950 ramp
primary
#8E1B7C
secondary
#47BE5A
accent
#EB583D
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F