#8E1B78#8E1B78
#8E1B78 is a mid, vivid pink. Relative luminance 0.079; OKLCH L 45.3% C 0.177 H 337.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).
Color values
| HEX | #8E1B78 |
|---|---|
| RGB | rgb(142, 27, 120) |
| HSL | hsl(311, 68%, 33%) |
| HSV | hsv(311, 81%, 56%) |
| CMYK | cmyk(0%, 81%, 15.5%, 44.3%) |
| CIE-LAB | lab(33.76, 55.36, -24.99) |
| CIE-LCH | lch(33.76, 60.73, 335.70°) |
| OKLab | oklab(45.25% 0.1636 -0.068) |
| OKLCH | oklch(45.25% 0.177 337.4) |
| XYZ | xyz(14.9378, 7.8922, 18.5023) |
| Luminance | 0.0789 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.92
Darkmagenta
#8B008B
ΔE00 5.03
Darkish Purple
#751973
ΔE00 5.28
Purple
#800080
ΔE00 5.34
Red Violet
#9E0168
ΔE00 5.66
Barney Purple
#A00498
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E1B78 #1B8E31
analogous
#6A1B8E #8E1B78 #8E1B3F
triadic
#8E1B78 #788E1B #1B788E
tetradic
#8E1B78 #8E6A1B #1B8E31 #1B3F8E
square
#8E1B78 #8E6A1B #1B8E31 #1B3F8E
split-complementary
#8E1B78 #3F8E1B #1B8E6A
monochromatic
#270721 #5B114D #8E1B78 #C125A3 #DC47C0
Accessibility & contrast
On white
8.15
#8E1B78 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#8E1B78 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8E1B78
8.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E1B78 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E1B78 | 1.00 | 8.15 | 2.58 | 8.15 |
| #FFFFFF | 8.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#20447A
Deuteranopia (green-blind)
#495675
Tritanopia (blue-blind)
#962349
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #8e1b78; /* rgb */ color: rgb(142, 27, 120); /* oklch */ color: oklch(45.3% 0.177 337.4);
Tailwind
colors: {
custom: {
50: '#b3669f',
500: '#8e1b78',
950: '#000000',
},
}SCSS
$custom: #8e1b78; $custom-light: #b3669f; $custom-dark: #000000;
JSON
{
"hex": "#8e1b78",
"rgb": {
"r": 142,
"g": 27,
"b": 120
},
"hsl": {
"h": 311.478,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.45253,
"c": 0.17721,
"h": 337.4
},
"luminance": 0.07891
}Semantic roles & 50–950 ramp
primary
#8E1B78
secondary
#47BE5E
accent
#EB5E3D
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E