#8E2173#8E2173
#8E2173 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.5% C 0.168 H 340.0°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2173 |
|---|---|
| RGB | rgb(142, 33, 115) |
| HSL | hsl(315, 62%, 34%) |
| HSV | hsv(315, 77%, 56%) |
| CMYK | cmyk(0%, 76.8%, 19%, 44.3%) |
| CIE-LAB | lab(34.14, 52.82, -21.23) |
| CIE-LCH | lch(34.14, 56.93, 338.10°) |
| OKLab | oklab(45.45% 0.1576 -0.0573) |
| OKLCH | oklch(45.45% 0.168 340) |
| XYZ | xyz(14.7941, 8.0778, 16.9964) |
| Luminance | 0.0808 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Red Violet
#9E0168
ΔE00 4.71
Warm Purple
#952E8F
ΔE00 5.62
Darkish Purple
#751973
ΔE00 6.16
Darkmagenta
#8B008B
ΔE00 6.55
Bruise
#7E4071
ΔE00 6.69
Purple
#800080
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2173 #218E3C
analogous
#73218E #8E2173 #8E213D
triadic
#8E2173 #738E21 #21738E
tetradic
#8E2173 #8E7321 #218E3C #213D8E
square
#8E2173 #8E7321 #218E3C #213D8E
split-complementary
#8E2173 #3D8E21 #218E73
monochromatic
#2B0A23 #5C154B #8E2173 #C02D9B #D752B6
Accessibility & contrast
On white
8.03
#8E2173 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#8E2173 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8E2173
8.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2173 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2173 | 1.00 | 8.03 | 2.62 | 8.03 |
| #FFFFFF | 8.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#294575
Deuteranopia (green-blind)
#4D5670
Tritanopia (blue-blind)
#972547
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #8e2173; /* rgb */ color: rgb(142, 33, 115); /* oklch */ color: oklch(45.5% 0.168 340.0);
Tailwind
colors: {
custom: {
50: '#b3689b',
500: '#8e2173',
950: '#000000',
},
}SCSS
$custom: #8e2173; $custom-light: #b3689b; $custom-dark: #000000;
JSON
{
"hex": "#8e2173",
"rgb": {
"r": 142,
"g": 33,
"b": 115
},
"hsl": {
"h": 314.862,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.45452,
"c": 0.1677,
"h": 340
},
"luminance": 0.08076
}Semantic roles & 50–950 ramp
primary
#8E2173
secondary
#50BA6B
accent
#E56B42
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E