#9D1F5A#9D1F5A

#9D1F5A is a mid, vivid pink. Relative luminance 0.089; OKLCH L 46.8% C 0.167 H 357.9°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#9D1F5A
RGBrgb(157, 31, 90)
HSLhsl(332, 67%, 37%)
HSVhsv(332, 80%, 62%)
CMYKcmyk(0%, 80.3%, 42.7%, 38.4%)
CIE-LABlab(35.77, 54.32, -2.55)
CIE-LCHlch(35.77, 54.38, 357.31°)
OKLaboklab(46.83% 0.1671 -0.006)
OKLCHoklch(46.83% 0.167 357.9)
XYZxyz(16.2413, 8.8884, 10.5313)
Luminance0.0889 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F5A #1F9D62
analogous
#9D1F99 #9D1F5A #9D231F
triadic
#9D1F5A #5A9D1F #1F5A9D
tetradic
#9D1F5A #999D1F #1F9D62 #231F9D
square
#9D1F5A #999D1F #1F9D62 #231F9D
split-complementary
#9D1F5A #1F9D23 #1F999D
monochromatic
#370B1F #6A153D #9D1F5A #D02977 #DE5897

Accessibility & contrast

On white

7.56
#9D1F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#9D1F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1F5A
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F5A#FFFFFF#000000##FFFFFF
##9D1F5A1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C455B
Deuteranopia (green-blind)
#5E5D57
Tritanopia (blue-blind)
#AA053A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #9d1f5a;
/* rgb */ color: rgb(157, 31, 90);
/* oklch */ color: oklch(46.8% 0.167 357.9);
Tailwind
colors: {
  custom: {
    50: '#bf6988',
    500: '#9d1f5a',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f5a;
$custom-light: #bf6988;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f5a",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 331.905,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46829,
    "c": 0.16719,
    "h": 357.9
  },
  "luminance": 0.08886
}

Semantic roles & 50–950 ramp

primary
#9D1F5A
secondary
#56C28F
accent
#EA993E
background
#FCF6F8
surface
#F8ECEF
border
#D1C7CA
text
#13070B
muted
#827A7C

Preview Lab

Preview with #9D1F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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