#8F2771#8F2771
#8F2771 is a mid, vivid pink. Relative luminance 0.085; OKLCH L 46.1% C 0.160 H 341.7°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).
Color values
| HEX | #8F2771 |
|---|---|
| RGB | rgb(143, 39, 113) |
| HSL | hsl(317, 57%, 36%) |
| HSV | hsv(317, 73%, 56%) |
| CMYK | cmyk(0%, 72.7%, 21%, 43.9%) |
| CIE-LAB | lab(34.97, 50.70, -18.67) |
| CIE-LCH | lch(34.97, 54.03, 339.78°) |
| OKLab | oklab(46.06% 0.1519 -0.0501) |
| OKLCH | oklch(46.06% 0.16 341.7) |
| XYZ | xyz(15.0343, 8.4844, 16.4655) |
| Luminance | 0.0848 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Red Violet
#9E0168
ΔE00 4.37
Bruise
#7E4071
ΔE00 5.97
Warm Purple
#952E8F
ΔE00 6.06
Deep Magenta
#A0025C
ΔE00 6.95
Light Eggplant
#894585
ΔE00 6.99
Dark Magenta
#960056
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F2771 #278F45
analogous
#79278F #8F2771 #8F273D
triadic
#8F2771 #718F27 #27718F
tetradic
#8F2771 #8F7927 #278F45 #273D8F
square
#8F2771 #8F7927 #278F45 #273D8F
split-complementary
#8F2771 #3D8F27 #278F79
monochromatic
#2F0D25 #5F1A4B #8F2771 #BF3497 #D35DB1
Accessibility & contrast
On white
7.79
#8F2771 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#8F2771 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8F2771
7.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F2771 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F2771 | 1.00 | 7.79 | 2.70 | 7.79 |
| #FFFFFF | 7.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#304773
Deuteranopia (green-blind)
#50586F
Tritanopia (blue-blind)
#982948
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #8f2771; /* rgb */ color: rgb(143, 39, 113); /* oklch */ color: oklch(46.1% 0.160 341.7);
Tailwind
colors: {
custom: {
50: '#b36b9a',
500: '#8f2771',
950: '#000000',
},
}SCSS
$custom: #8f2771; $custom-light: #b36b9a; $custom-dark: #000000;
JSON
{
"hex": "#8f2771",
"rgb": {
"r": 143,
"g": 39,
"b": 113
},
"hsl": {
"h": 317.308,
"s": 57.143,
"l": 35.686
},
"oklch": {
"l": 0.46056,
"c": 0.15996,
"h": 341.7
},
"luminance": 0.08483
}Semantic roles & 50–950 ramp
primary
#8F2771
secondary
#5AB875
accent
#E07447
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E