#8E2271#8E2271
#8E2271 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.4% C 0.165 H 341.0°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2271 |
|---|---|
| RGB | rgb(142, 34, 113) |
| HSL | hsl(316, 61%, 35%) |
| HSV | hsv(316, 76%, 56%) |
| CMYK | cmyk(0%, 76.1%, 20.4%, 44.3%) |
| CIE-LAB | lab(34.17, 52.20, -19.93) |
| CIE-LCH | lch(34.17, 55.88, 339.10°) |
| OKLab | oklab(45.44% 0.1563 -0.0537) |
| OKLCH | oklch(45.44% 0.165 341) |
| XYZ | xyz(14.7084, 8.0886, 16.4062) |
| Luminance | 0.0809 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Red Violet
#9E0168
ΔE00 4.39
Warm Purple
#952E8F
ΔE00 6.02
Darkish Purple
#751973
ΔE00 6.51
Bruise
#7E4071
ΔE00 6.53
Darkmagenta
#8B008B
ΔE00 7.08
Dark Magenta
#960056
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2271 #228E3F
analogous
#75228E #8E2271 #8E223B
triadic
#8E2271 #718E22 #22718E
tetradic
#8E2271 #8E7522 #228E3F #223B8E
square
#8E2271 #8E7522 #228E3F #223B8E
split-complementary
#8E2271 #3B8E22 #228E75
monochromatic
#2B0A22 #5D164A #8E2271 #BF2E98 #D654B3
Accessibility & contrast
On white
8.02
#8E2271 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#8E2271 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8E2271
8.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2271 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2271 | 1.00 | 8.02 | 2.62 | 8.02 |
| #FFFFFF | 8.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B4573
Deuteranopia (green-blind)
#4E576F
Tritanopia (blue-blind)
#972447
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #8e2271; /* rgb */ color: rgb(142, 34, 113); /* oklch */ color: oklch(45.4% 0.165 341.0);
Tailwind
colors: {
custom: {
50: '#b3699a',
500: '#8e2271',
950: '#000000',
},
}SCSS
$custom: #8e2271; $custom-light: #b3699a; $custom-dark: #000000;
JSON
{
"hex": "#8e2271",
"rgb": {
"r": 142,
"g": 34,
"b": 113
},
"hsl": {
"h": 316.111,
"s": 61.364,
"l": 34.51
},
"oklch": {
"l": 0.45437,
"c": 0.16524,
"h": 341
},
"luminance": 0.08087
}Semantic roles & 50–950 ramp
primary
#8E2271
secondary
#52BA6E
accent
#E46F43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E