#9D1F4A#9D1F4A

#9D1F4A is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.3% C 0.162 H 6.5°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#9D1F4A
RGBrgb(157, 31, 74)
HSLhsl(340, 67%, 37%)
HSVhsv(340, 80%, 62%)
CMYKcmyk(0%, 80.3%, 52.9%, 38.4%)
CIE-LABlab(35.29, 52.86, 7.10)
CIE-LCHlch(35.29, 53.34, 7.65°)
OKLaboklab(46.32% 0.1614 0.0184)
OKLCHoklch(46.32% 0.162 6.5)
XYZxyz(15.6321, 8.6447, 7.3227)
Luminance0.0864 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F4A #1F9D72
analogous
#9D1F89 #9D1F4A #9D331F
triadic
#9D1F4A #4A9D1F #1F4A9D
tetradic
#9D1F4A #899D1F #1F9D72 #331F9D
square
#9D1F4A #899D1F #1F9D72 #331F9D
split-complementary
#9D1F4A #1F9D33 #1F899D
monochromatic
#370B1A #6A1532 #9D1F4A #D02962 #DE5886

Accessibility & contrast

On white

7.70
#9D1F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#9D1F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1F4A
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F4A#FFFFFF#000000##FFFFFF
##9D1F4A1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40434B
Deuteranopia (green-blind)
#615C47
Tritanopia (blue-blind)
#AC0032
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #9d1f4a;
/* rgb */ color: rgb(157, 31, 74);
/* oklch */ color: oklch(46.3% 0.162 6.5);
Tailwind
colors: {
  custom: {
    50: '#c0687c',
    500: '#9d1f4a',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f4a;
$custom-light: #c0687c;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f4a",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 74
  },
  "hsl": {
    "h": 339.524,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46322,
    "c": 0.16244,
    "h": 6.5
  },
  "luminance": 0.08642
}

Semantic roles & 50–950 ramp

primary
#9D1F4A
secondary
#56C29D
accent
#EAAF3E
background
#FCF6F7
surface
#F8EBEE
border
#D1C6C9
text
#130709
muted
#827A7B

Preview Lab

Preview with #9D1F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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