#8F2271#8F2271
#8F2271 is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.6% C 0.166 H 341.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).
Color values
| HEX | #8F2271 |
|---|---|
| RGB | rgb(143, 34, 113) |
| HSL | hsl(317, 62%, 35%) |
| HSV | hsv(317, 76%, 56%) |
| CMYK | cmyk(0%, 76.2%, 21%, 43.9%) |
| CIE-LAB | lab(34.35, 52.46, -19.63) |
| CIE-LCH | lch(34.35, 56.01, 339.48°) |
| OKLab | oklab(45.6% 0.1573 -0.0528) |
| OKLCH | oklch(45.6% 0.166 341.4) |
| XYZ | xyz(14.8808, 8.1775, 16.4143) |
| Luminance | 0.0818 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Red Violet
#9E0168
ΔE00 4.21
Warm Purple
#952E8F
ΔE00 6.05
Bruise
#7E4071
ΔE00 6.57
Darkish Purple
#751973
ΔE00 6.73
Dark Magenta
#960056
ΔE00 6.99
Deep Magenta
#A0025C
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F2271 #228F40
analogous
#77228F #8F2271 #8F223A
triadic
#8F2271 #718F22 #22718F
tetradic
#8F2271 #8F7722 #228F40 #223A8F
square
#8F2271 #8F7722 #228F40 #223A8F
split-complementary
#8F2271 #3A8F22 #228F77
monochromatic
#2C0A23 #5E164A #8F2271 #C02E98 #D755B3
Accessibility & contrast
On white
7.97
#8F2271 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.64
#8F2271 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8F2271
7.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F2271 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F2271 | 1.00 | 7.97 | 2.64 | 7.97 |
| #FFFFFF | 7.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C4673
Deuteranopia (green-blind)
#4E576E
Tritanopia (blue-blind)
#982447
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #8f2271; /* rgb */ color: rgb(143, 34, 113); /* oklch */ color: oklch(45.6% 0.166 341.4);
Tailwind
colors: {
custom: {
50: '#b3699a',
500: '#8f2271',
950: '#000000',
},
}SCSS
$custom: #8f2271; $custom-light: #b3699a; $custom-dark: #000000;
JSON
{
"hex": "#8f2271",
"rgb": {
"r": 143,
"g": 34,
"b": 113
},
"hsl": {
"h": 316.514,
"s": 61.582,
"l": 34.706
},
"oklch": {
"l": 0.45604,
"c": 0.16589,
"h": 341.4
},
"luminance": 0.08176
}Semantic roles & 50–950 ramp
primary
#8F2271
secondary
#52BA6F
accent
#E57043
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E