#9D2871#9D2871

#9D2871 is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.5% C 0.169 H 347.0°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#9D2871
RGBrgb(157, 40, 113)
HSLhsl(323, 59%, 39%)
HSVhsv(323, 75%, 62%)
CMYKcmyk(0%, 74.5%, 28%, 38.4%)
CIE-LABlab(37.63, 54.08, -14.38)
CIE-LCHlch(37.63, 55.96, 345.11°)
OKLaboklab(48.46% 0.1644 -0.038)
OKLCHoklch(48.46% 0.169 347)
XYZxyz(17.6449, 9.8799, 16.5974)
Luminance0.0988 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2871 #289D54
analogous
#8E289D #9D2871 #9D2836
triadic
#9D2871 #719D28 #28719D
tetradic
#9D2871 #9D8E28 #289D54 #28369D
square
#9D2871 #9D8E28 #289D54 #28369D
split-complementary
#9D2871 #369D28 #289D8E
monochromatic
#3B0F2B #6C1C4E #9D2871 #CC3694 #D867AE

Accessibility & contrast

On white

7.06
#9D2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9D2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D2871
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2871#FFFFFF#000000##FFFFFF
##9D28711.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384C73
Deuteranopia (green-blind)
#5B606E
Tritanopia (blue-blind)
#A82449
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d2871;
/* rgb */ color: rgb(157, 40, 113);
/* oklch */ color: oklch(48.5% 0.169 347.0);
Tailwind
colors: {
  custom: {
    50: '#be6d9a',
    500: '#9d2871',
    950: '#000000',
  },
}
SCSS
$custom: #9d2871;
$custom-light: #be6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2871",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 322.564,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.48463,
    "c": 0.16874,
    "h": 347
  },
  "luminance": 0.09878
}

Semantic roles & 50–950 ramp

primary
#9D2871
secondary
#62BE85
accent
#E38045
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #9D2871

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9D2871 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva