#8E2A71#8E2A71
#8E2A71 is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.2% C 0.155 H 341.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2A71 |
|---|---|
| RGB | rgb(142, 42, 113) |
| HSL | hsl(317, 54%, 36%) |
| HSV | hsv(317, 70%, 56%) |
| CMYK | cmyk(0%, 70.4%, 20.4%, 44.3%) |
| CIE-LAB | lab(35.20, 49.28, -18.33) |
| CIE-LCH | lch(35.20, 52.58, 339.60°) |
| OKLab | oklab(46.19% 0.1474 -0.0492) |
| OKLCH | oklch(46.19% 0.155 341.5) |
| XYZ | xyz(14.9644, 8.6004, 16.4915) |
| Luminance | 0.0860 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Red Violet
#9E0168
ΔE00 4.68
Bruise
#7E4071
ΔE00 5.52
Warm Purple
#952E8F
ΔE00 6.07
Light Eggplant
#894585
ΔE00 6.63
Deep Magenta
#A0025C
ΔE00 7.12
Dark Magenta
#960056
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2A71 #2A8E47
analogous
#792A8E #8E2A71 #8E2A3F
triadic
#8E2A71 #718E2A #2A718E
tetradic
#8E2A71 #8E792A #2A8E47 #2A3F8E
square
#8E2A71 #8E792A #2A8E47 #2A3F8E
split-complementary
#8E2A71 #3F8E2A #2A8E79
monochromatic
#300E26 #5F1C4B #8E2A71 #BD3897 #D162B0
Accessibility & contrast
On white
7.72
#8E2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.72
#8E2A71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8E2A71
7.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2A71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2A71 | 1.00 | 7.72 | 2.72 | 7.72 |
| #FFFFFF | 7.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#324873
Deuteranopia (green-blind)
#51596F
Tritanopia (blue-blind)
#972C49
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #8e2a71; /* rgb */ color: rgb(142, 42, 113); /* oklch */ color: oklch(46.2% 0.155 341.5);
Tailwind
colors: {
custom: {
50: '#b26c9a',
500: '#8e2a71',
950: '#000000',
},
}SCSS
$custom: #8e2a71; $custom-light: #b26c9a; $custom-dark: #000000;
JSON
{
"hex": "#8e2a71",
"rgb": {
"r": 142,
"g": 42,
"b": 113
},
"hsl": {
"h": 317.4,
"s": 54.348,
"l": 36.078
},
"oklch": {
"l": 0.4619,
"c": 0.15539,
"h": 341.5
},
"luminance": 0.08599
}Semantic roles & 50–950 ramp
primary
#8E2A71
secondary
#5DB677
accent
#DE754A
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E