#9D1F71#9D1F71

#9D1F71 is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.7% C 0.178 H 346.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#9D1F71
RGBrgb(157, 31, 113)
HSLhsl(321, 67%, 37%)
HSVhsv(321, 80%, 62%)
CMYKcmyk(0%, 80.3%, 28%, 38.4%)
CIE-LABlab(36.64, 56.90, -15.89)
CIE-LCHlch(36.64, 59.08, 344.39°)
OKLaboklab(47.74% 0.1732 -0.0421)
OKLCHoklch(47.74% 0.178 346.3)
XYZxyz(17.3761, 9.3423, 16.5078)
Luminance0.0934 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F71 #1F9D4B
analogous
#8A1F9D #9D1F71 #9D1F32
triadic
#9D1F71 #719D1F #1F719D
tetradic
#9D1F71 #9D8A1F #1F9D4B #1F329D
square
#9D1F71 #9D8A1F #1F9D4B #1F329D
split-complementary
#9D1F71 #329D1F #1F9D8A
monochromatic
#370B27 #6A154C #9D1F71 #D02996 #DE58AF

Accessibility & contrast

On white

7.32
#9D1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#9D1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1F71
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F71#FFFFFF#000000##FFFFFF
##9D1F711.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324973
Deuteranopia (green-blind)
#585E6E
Tritanopia (blue-blind)
#A81B46
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9d1f71;
/* rgb */ color: rgb(157, 31, 113);
/* oklch */ color: oklch(47.7% 0.178 346.3);
Tailwind
colors: {
  custom: {
    50: '#be6a9a',
    500: '#9d1f71',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f71;
$custom-light: #be6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f71",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 320.952,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47743,
    "c": 0.17822,
    "h": 346.3
  },
  "luminance": 0.0934
}

Semantic roles & 50–950 ramp

primary
#9D1F71
secondary
#56C27C
accent
#EA7A3E
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070E
muted
#827A7E

Preview Lab

Preview with #9D1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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