#9D1F56#9D1F56

#9D1F56 is a mid, vivid pink. Relative luminance 0.088; OKLCH L 46.7% C 0.166 H 0.1°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#9D1F56
RGBrgb(157, 31, 86)
HSLhsl(334, 67%, 37%)
HSVhsv(334, 80%, 62%)
CMYKcmyk(0%, 80.3%, 45.2%, 38.4%)
CIE-LABlab(35.64, 53.93, -0.16)
CIE-LCHlch(35.64, 53.93, 359.83°)
OKLaboklab(46.69% 0.1658 0.0002)
OKLCHoklch(46.69% 0.166 0.1)
XYZxyz(16.0756, 8.8221, 9.6586)
Luminance0.0882 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F56 #1F9D66
analogous
#9D1F95 #9D1F56 #9D271F
triadic
#9D1F56 #569D1F #1F569D
tetradic
#9D1F56 #959D1F #1F9D66 #271F9D
square
#9D1F56 #959D1F #1F9D66 #271F9D
split-complementary
#9D1F56 #1F9D27 #1F959D
monochromatic
#370B1E #6A153A #9D1F56 #D02972 #DE5893

Accessibility & contrast

On white

7.60
#9D1F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#9D1F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1F56
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F56#FFFFFF#000000##FFFFFF
##9D1F561.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D4457
Deuteranopia (green-blind)
#5F5C53
Tritanopia (blue-blind)
#AB0038
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #9d1f56;
/* rgb */ color: rgb(157, 31, 86);
/* oklch */ color: oklch(46.7% 0.166 0.1);
Tailwind
colors: {
  custom: {
    50: '#bf6985',
    500: '#9d1f56',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f56;
$custom-light: #bf6985;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f56",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 333.81,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46692,
    "c": 0.16575,
    "h": 0.1
  },
  "luminance": 0.0882
}

Semantic roles & 50–950 ramp

primary
#9D1F56
secondary
#56C293
accent
#EA9F3E
background
#FCF6F8
surface
#F8ECEF
border
#D1C7CA
text
#13070B
muted
#827A7C

Preview Lab

Preview with #9D1F56

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

Preview Lab → · Contrast checker → · Palette generator →

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