#8E1F7B#8E1F7B
#8E1F7B is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.7% C 0.175 H 336.2°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).
Color values
| HEX | #8E1F7B |
|---|---|
| RGB | rgb(142, 31, 123) |
| HSL | hsl(310, 64%, 34%) |
| HSV | hsv(310, 78%, 56%) |
| CMYK | cmyk(0%, 78.2%, 13.4%, 44.3%) |
| CIE-LAB | lab(34.32, 54.63, -26.00) |
| CIE-LCH | lch(34.32, 60.50, 334.55°) |
| OKLab | oklab(45.71% 0.1604 -0.0709) |
| OKLCH | oklch(45.71% 0.175 336.2) |
| XYZ | xyz(15.2207, 8.1622, 19.5089) |
| Luminance | 0.0816 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.24
Darkmagenta
#8B008B
ΔE00 4.78
Purple
#800080
ΔE00 5.29
Darkish Purple
#751973
ΔE00 5.31
Barney Purple
#A00498
ΔE00 5.46
Red Violet
#9E0168
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E1F7B #1F8E32
analogous
#6A1F8E #8E1F7B #8E1F44
triadic
#8E1F7B #7B8E1F #1F7B8E
tetradic
#8E1F7B #8E6A1F #1F8E32 #1F448E
square
#8E1F7B #8E6A1F #1F8E32 #1F448E
split-complementary
#8E1F7B #448E1F #1F8E6A
monochromatic
#2A0924 #5C144F #8E1F7B #C02AA7 #D94FC1
Accessibility & contrast
On white
7.98
#8E1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.63
#8E1F7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8E1F7B
7.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E1F7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E1F7B | 1.00 | 7.98 | 2.63 | 7.98 |
| #FFFFFF | 7.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#21467D
Deuteranopia (green-blind)
#495778
Tritanopia (blue-blind)
#96284B
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #8e1f7b; /* rgb */ color: rgb(142, 31, 123); /* oklch */ color: oklch(45.7% 0.175 336.2);
Tailwind
colors: {
custom: {
50: '#b368a1',
500: '#8e1f7b',
950: '#000000',
},
}SCSS
$custom: #8e1f7b; $custom-light: #b368a1; $custom-dark: #000000;
JSON
{
"hex": "#8e1f7b",
"rgb": {
"r": 142,
"g": 31,
"b": 123
},
"hsl": {
"h": 310.27,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.45706,
"c": 0.17538,
"h": 336.2
},
"luminance": 0.08161
}Semantic roles & 50–950 ramp
primary
#8E1F7B
secondary
#4DBB60
accent
#E75D41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E