#9D1F5C#9D1F5C

#9D1F5C is a mid, vivid pink. Relative luminance 0.089; OKLCH L 46.9% C 0.168 H 356.9°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#9D1F5C
RGBrgb(157, 31, 92)
HSLhsl(331, 67%, 37%)
HSVhsv(331, 80%, 62%)
CMYKcmyk(0%, 80.3%, 41.4%, 38.4%)
CIE-LABlab(35.84, 54.52, -3.74)
CIE-LCHlch(35.84, 54.65, 356.08°)
OKLaboklab(46.9% 0.1677 -0.0091)
OKLCHoklch(46.9% 0.168 356.9)
XYZxyz(16.3276, 8.9229, 10.9856)
Luminance0.0892 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F5C #1F9D60
analogous
#9D1F9B #9D1F5C #9D211F
triadic
#9D1F5C #5C9D1F #1F5C9D
tetradic
#9D1F5C #9B9D1F #1F9D60 #211F9D
square
#9D1F5C #9B9D1F #1F9D60 #211F9D
split-complementary
#9D1F5C #1F9D21 #1F9B9D
monochromatic
#370B20 #6A153E #9D1F5C #D0297A #DE5899

Accessibility & contrast

On white

7.54
#9D1F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D1F5C
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F5C#FFFFFF#000000##FFFFFF
##9D1F5C1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B455D
Deuteranopia (green-blind)
#5E5D59
Tritanopia (blue-blind)
#AA073B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #9d1f5c;
/* rgb */ color: rgb(157, 31, 92);
/* oklch */ color: oklch(46.9% 0.168 356.9);
Tailwind
colors: {
  custom: {
    50: '#bf698a',
    500: '#9d1f5c',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f5c;
$custom-light: #bf698a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f5c",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 330.952,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46899,
    "c": 0.16797,
    "h": 356.9
  },
  "luminance": 0.08921
}

Semantic roles & 50–950 ramp

primary
#9D1F5C
secondary
#56C28E
accent
#EA973E
background
#FCF6F8
surface
#F8ECF0
border
#D1C7CB
text
#13070B
muted
#827A7C

Preview Lab

Preview with #9D1F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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