#9D2873#9D2873

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

Color values

HEX#9D2873
RGBrgb(157, 40, 115)
HSLhsl(322, 59%, 39%)
HSVhsv(322, 75%, 62%)
CMYKcmyk(0%, 74.5%, 26.8%, 38.4%)
CIE-LABlab(37.71, 54.34, -15.51)
CIE-LCHlch(37.71, 56.51, 344.07°)
OKLaboklab(48.55% 0.1649 -0.0411)
OKLCHoklch(48.55% 0.17 346)
XYZxyz(17.7587, 9.9254, 17.1969)
Luminance0.0992 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2873 #289D52
analogous
#8C289D #9D2873 #9D2839
triadic
#9D2873 #739D28 #28739D
tetradic
#9D2873 #9D8C28 #289D52 #28399D
square
#9D2873 #9D8C28 #289D52 #28399D
split-complementary
#9D2873 #399D28 #289D8C
monochromatic
#3B0F2C #6C1C4F #9D2873 #CC3696 #D867B0

Accessibility & contrast

On white

7.04
#9D2873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D2873
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2873#FFFFFF#000000##FFFFFF
##9D28731.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374C75
Deuteranopia (green-blind)
#5A6070
Tritanopia (blue-blind)
#A8254A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d2873;
/* rgb */ color: rgb(157, 40, 115);
/* oklch */ color: oklch(48.5% 0.170 346.0);
Tailwind
colors: {
  custom: {
    50: '#be6d9b',
    500: '#9d2873',
    950: '#000000',
  },
}
SCSS
$custom: #9d2873;
$custom-light: #be6d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2873",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 321.538,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4855,
    "c": 0.1699,
    "h": 346
  },
  "luminance": 0.09923
}

Semantic roles & 50–950 ramp

primary
#9D2873
secondary
#62BE83
accent
#E37E45
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #9D2873

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

Preview Lab → · Contrast checker → · Palette generator →

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