#9D2872#9D2872

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

Color values

HEX#9D2872
RGBrgb(157, 40, 114)
HSLhsl(322, 59%, 39%)
HSVhsv(322, 75%, 62%)
CMYKcmyk(0%, 74.5%, 27.4%, 38.4%)
CIE-LABlab(37.67, 54.21, -14.94)
CIE-LCHlch(37.67, 56.24, 344.59°)
OKLaboklab(48.51% 0.1646 -0.0395)
OKLCHoklch(48.51% 0.169 346.5)
XYZxyz(17.7015, 9.9025, 16.8955)
Luminance0.0990 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2872 #289D53
analogous
#8D289D #9D2872 #9D2837
triadic
#9D2872 #729D28 #28729D
tetradic
#9D2872 #9D8D28 #289D53 #28379D
square
#9D2872 #9D8D28 #289D53 #28379D
split-complementary
#9D2872 #379D28 #289D8D
monochromatic
#3B0F2B #6C1C4F #9D2872 #CC3695 #D867AF

Accessibility & contrast

On white

7.05
#9D2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D2872
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2872#FFFFFF#000000##FFFFFF
##9D28721.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384C74
Deuteranopia (green-blind)
#5B606F
Tritanopia (blue-blind)
#A82549
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d2872;
/* rgb */ color: rgb(157, 40, 114);
/* oklch */ color: oklch(48.5% 0.169 346.5);
Tailwind
colors: {
  custom: {
    50: '#be6d9a',
    500: '#9d2872',
    950: '#000000',
  },
}
SCSS
$custom: #9d2872;
$custom-light: #be6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2872",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 322.051,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.48506,
    "c": 0.16931,
    "h": 346.5
  },
  "luminance": 0.09901
}

Semantic roles & 50–950 ramp

primary
#9D2872
secondary
#62BE84
accent
#E37F45
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #9D2872

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

Preview Lab → · Contrast checker → · Palette generator →

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