#9B2871#9B2871
#9B2871 is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.1% C 0.167 H 346.3°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).
Color values
| HEX | #9B2871 |
|---|---|
| RGB | rgb(155, 40, 113) |
| HSL | hsl(322, 59%, 38%) |
| HSV | hsv(322, 74%, 61%) |
| CMYK | cmyk(0%, 74.2%, 27.1%, 39.2%) |
| CIE-LAB | lab(37.26, 53.55, -14.97) |
| CIE-LCH | lch(37.26, 55.60, 344.39°) |
| OKLab | oklab(48.13% 0.1625 -0.0396) |
| OKLCH | oklch(48.13% 0.167 346.3) |
| XYZ | xyz(17.2578, 9.6803, 16.5792) |
| Luminance | 0.0968 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Red Violet
#9E0168
ΔE00 3.37
Deep Magenta
#A0025C
ΔE00 5.38
Dark Fuchsia
#9D0759
ΔE00 5.81
Dark Magenta
#960056
ΔE00 6.24
Magenta (survey)
#C20078
ΔE00 7.01
Bruise
#7E4071
ΔE00 7.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B2871 #289B52
analogous
#8B289B #9B2871 #9B2837
triadic
#9B2871 #719B28 #28719B
tetradic
#9B2871 #9B8B28 #289B52 #28379B
square
#9B2871 #9B8B28 #289B52 #28379B
split-complementary
#9B2871 #379B28 #289B8B
monochromatic
#3A0F2A #6A1B4E #9B2871 #CB3594 #D766AE
Accessibility & contrast
On white
7.15
#9B2871 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#9B2871 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #9B2871
7.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B2871 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9B2871 | 1.00 | 7.15 | 2.94 | 7.15 |
| #FFFFFF | 7.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#374B73
Deuteranopia (green-blind)
#595F6E
Tritanopia (blue-blind)
#A62549
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #9b2871; /* rgb */ color: rgb(155, 40, 113); /* oklch */ color: oklch(48.1% 0.167 346.3);
Tailwind
colors: {
custom: {
50: '#bc6d9a',
500: '#9b2871',
950: '#000000',
},
}SCSS
$custom: #9b2871; $custom-light: #bc6d9a; $custom-dark: #000000;
JSON
{
"hex": "#9b2871",
"rgb": {
"r": 155,
"g": 40,
"b": 113
},
"hsl": {
"h": 321.913,
"s": 58.974,
"l": 38.235
},
"oklch": {
"l": 0.4813,
"c": 0.16728,
"h": 346.3
},
"luminance": 0.09678
}Semantic roles & 50–950 ramp
primary
#9B2871
secondary
#61BD83
accent
#E27F46
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12080E
muted
#817B7E