#8E1A7A#8E1A7A
#8E1A7A is a mid, vivid pink. Relative luminance 0.079; OKLCH L 45.3% C 0.179 H 336.5°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).
Color values
| HEX | #8E1A7A |
|---|---|
| RGB | rgb(142, 26, 122) |
| HSL | hsl(310, 69%, 33%) |
| HSV | hsv(310, 82%, 56%) |
| CMYK | cmyk(0%, 81.7%, 14.1%, 44.3%) |
| CIE-LAB | lab(33.77, 55.92, -26.23) |
| CIE-LCH | lch(33.77, 61.77, 334.87°) |
| OKLab | oklab(45.29% 0.1646 -0.0716) |
| OKLCH | oklch(45.29% 0.18 336.5) |
| XYZ | xyz(15.0379, 7.8961, 19.1407) |
| Luminance | 0.0790 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Darkmagenta
#8B008B
ΔE00 4.56
Warm Purple
#952E8F
ΔE00 4.67
Purple
#800080
ΔE00 4.96
Darkish Purple
#751973
ΔE00 5.10
Barney Purple
#A00498
ΔE00 5.52
Red Violet
#9E0168
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E1A7A #1A8E2E
analogous
#681A8E #8E1A7A #8E1A40
triadic
#8E1A7A #7A8E1A #1A7A8E
tetradic
#8E1A7A #8E681A #1A8E2E #1A408E
square
#8E1A7A #8E681A #1A8E2E #1A408E
split-complementary
#8E1A7A #408E1A #1A8E68
monochromatic
#270721 #5A114E #8E1A7A #C223A6 #DD45C3
Accessibility & contrast
On white
8.14
#8E1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#8E1A7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8E1A7A
8.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E1A7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E1A7A | 1.00 | 8.14 | 2.58 | 8.14 |
| #FFFFFF | 8.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D447C
Deuteranopia (green-blind)
#475577
Tritanopia (blue-blind)
#96234A
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #8e1a7a; /* rgb */ color: rgb(142, 26, 122); /* oklch */ color: oklch(45.3% 0.179 336.5);
Tailwind
colors: {
custom: {
50: '#b366a1',
500: '#8e1a7a',
950: '#000000',
},
}SCSS
$custom: #8e1a7a; $custom-light: #b366a1; $custom-dark: #000000;
JSON
{
"hex": "#8e1a7a",
"rgb": {
"r": 142,
"g": 26,
"b": 122
},
"hsl": {
"h": 310.345,
"s": 69.048,
"l": 32.941
},
"oklch": {
"l": 0.45293,
"c": 0.1795,
"h": 336.5
},
"luminance": 0.07895
}Semantic roles & 50–950 ramp
primary
#8E1A7A
secondary
#45BE5A
accent
#EC5A3C
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E