#9D1F4D#9D1F4D

#9D1F4D is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.4% C 0.163 H 4.9°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#9D1F4D
RGBrgb(157, 31, 77)
HSLhsl(338, 67%, 37%)
HSVhsv(338, 80%, 62%)
CMYKcmyk(0%, 80.3%, 51%, 38.4%)
CIE-LABlab(35.37, 53.11, 5.27)
CIE-LCHlch(35.37, 53.37, 5.67°)
OKLaboklab(46.41% 0.1625 0.0139)
OKLCHoklch(46.41% 0.163 4.9)
XYZxyz(15.7356, 8.6861, 7.8677)
Luminance0.0868 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F4D #1F9D6F
analogous
#9D1F8C #9D1F4D #9D301F
triadic
#9D1F4D #4D9D1F #1F4D9D
tetradic
#9D1F4D #8C9D1F #1F9D6F #301F9D
square
#9D1F4D #8C9D1F #1F9D6F #301F9D
split-complementary
#9D1F4D #1F9D30 #1F8C9D
monochromatic
#370B1B #6A1534 #9D1F4D #D02966 #DE5889

Accessibility & contrast

On white

7.67
#9D1F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#9D1F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1F4D
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F4D#FFFFFF#000000##FFFFFF
##9D1F4D1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40434E
Deuteranopia (green-blind)
#615C4A
Tritanopia (blue-blind)
#AB0033
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #9d1f4d;
/* rgb */ color: rgb(157, 31, 77);
/* oklch */ color: oklch(46.4% 0.163 4.9);
Tailwind
colors: {
  custom: {
    50: '#c0697e',
    500: '#9d1f4d',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f4d;
$custom-light: #c0697e;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f4d",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 338.095,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46409,
    "c": 0.16312,
    "h": 4.9
  },
  "luminance": 0.08684
}

Semantic roles & 50–950 ramp

primary
#9D1F4D
secondary
#56C29A
accent
#EAAB3E
background
#FCF6F7
surface
#F8EBEE
border
#D1C6C9
text
#130709
muted
#827A7B

Preview Lab

Preview with #9D1F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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