#972871#972871
#972871 is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.5% C 0.164 H 344.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).
Color values
| HEX | #972871 |
|---|---|
| RGB | rgb(151, 40, 113) |
| HSL | hsl(321, 58%, 37%) |
| HSV | hsv(321, 74%, 59%) |
| CMYK | cmyk(0%, 73.5%, 25.2%, 40.8%) |
| CIE-LAB | lab(36.54, 52.48, -16.14) |
| CIE-LCH | lch(36.54, 54.90, 342.91°) |
| OKLab | oklab(47.47% 0.1587 -0.0429) |
| OKLCH | oklch(47.47% 0.164 344.9) |
| XYZ | xyz(16.5026, 9.2909, 16.5438) |
| Luminance | 0.0929 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Red Violet
#9E0168
ΔE00 3.51
Deep Magenta
#A0025C
ΔE00 5.80
Dark Fuchsia
#9D0759
ΔE00 6.18
Dark Magenta
#960056
ΔE00 6.38
Bruise
#7E4071
ΔE00 6.63
Warm Purple
#952E8F
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#972871 #28974E
analogous
#862897 #972871 #972839
triadic
#972871 #719728 #287197
tetradic
#972871 #978628 #28974E #283997
square
#972871 #978628 #28974E #283997
split-complementary
#972871 #399728 #289786
monochromatic
#360E29 #671B4D #972871 #C73595 #D664AF
Accessibility & contrast
On white
7.35
#972871 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#972871 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #972871
7.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##972871 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##972871 | 1.00 | 7.35 | 2.86 | 7.35 |
| #FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#354A73
Deuteranopia (green-blind)
#575D6E
Tritanopia (blue-blind)
#A12749
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #972871; /* rgb */ color: rgb(151, 40, 113); /* oklch */ color: oklch(47.5% 0.164 344.9);
Tailwind
colors: {
custom: {
50: '#b96c9a',
500: '#972871',
950: '#000000',
},
}SCSS
$custom: #972871; $custom-light: #b96c9a; $custom-dark: #000000;
JSON
{
"hex": "#972871",
"rgb": {
"r": 151,
"g": 40,
"b": 113
},
"hsl": {
"h": 320.541,
"s": 58.115,
"l": 37.451
},
"oklch": {
"l": 0.47467,
"c": 0.1644,
"h": 344.9
},
"luminance": 0.09289
}Semantic roles & 50–950 ramp
primary
#972871
secondary
#5FBC7F
accent
#E17B46
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12080E
muted
#817B7E