#9D1F4E#9D1F4E

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

Color values

HEX#9D1F4E
RGBrgb(157, 31, 78)
HSLhsl(338, 67%, 37%)
HSVhsv(338, 80%, 62%)
CMYKcmyk(0%, 80.3%, 50.3%, 38.4%)
CIE-LABlab(35.40, 53.20, 4.66)
CIE-LCHlch(35.40, 53.40, 5.01°)
OKLaboklab(46.44% 0.1629 0.0124)
OKLCHoklch(46.44% 0.163 4.4)
XYZxyz(15.7712, 8.7003, 8.0551)
Luminance0.0870 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F4E #1F9D6E
analogous
#9D1F8D #9D1F4E #9D2F1F
triadic
#9D1F4E #4E9D1F #1F4E9D
tetradic
#9D1F4E #8D9D1F #1F9D6E #2F1F9D
square
#9D1F4E #8D9D1F #1F9D6E #2F1F9D
split-complementary
#9D1F4E #1F9D2F #1F8D9D
monochromatic
#370B1B #6A1535 #9D1F4E #D02967 #DE588A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D1F4E#FFFFFF#000000##FFFFFF
##9D1F4E1.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)
#3F434F
Deuteranopia (green-blind)
#615C4B
Tritanopia (blue-blind)
#AB0034
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #9d1f4e;
/* rgb */ color: rgb(157, 31, 78);
/* oklch */ color: oklch(46.4% 0.163 4.4);
Tailwind
colors: {
  custom: {
    50: '#c0697f',
    500: '#9d1f4e',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f4e;
$custom-light: #c0697f;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f4e",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 337.619,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46439,
    "c": 0.16337,
    "h": 4.4
  },
  "luminance": 0.08698
}

Semantic roles & 50–950 ramp

primary
#9D1F4E
secondary
#56C29A
accent
#EAAA3E
background
#FCF6F7
surface
#F8EBEE
border
#D1C6C9
text
#13070A
muted
#827A7C

Preview Lab

Preview with #9D1F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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