#9D1F7D#9D1F7D

#9D1F7D is a mid, vivid pink. Relative luminance 0.096; OKLCH L 48.3% C 0.185 H 340.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#9D1F7D
RGBrgb(157, 31, 125)
HSLhsl(315, 67%, 37%)
HSVhsv(315, 80%, 62%)
CMYKcmyk(0%, 80.3%, 20.4%, 38.4%)
CIE-LABlab(37.17, 58.46, -22.59)
CIE-LCHlch(37.17, 62.67, 338.87°)
OKLaboklab(48.31% 0.1752 -0.0609)
OKLCHoklch(48.31% 0.185 340.8)
XYZxyz(18.0969, 9.6306, 20.3039)
Luminance0.0963 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F7D #1F9D3F
analogous
#7E1F9D #9D1F7D #9D1F3E
triadic
#9D1F7D #7D9D1F #1F7D9D
tetradic
#9D1F7D #9D7E1F #1F9D3F #1F3E9D
square
#9D1F7D #9D7E1F #1F9D3F #1F3E9D
split-complementary
#9D1F7D #3E9D1F #1F9D7E
monochromatic
#370B2C #6A1554 #9D1F7D #D029A6 #DE58BC

Accessibility & contrast

On white

7.18
#9D1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#9D1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1F7D
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F7D#FFFFFF#000000##FFFFFF
##9D1F7D1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B7F
Deuteranopia (green-blind)
#545F7A
Tritanopia (blue-blind)
#A7234D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9d1f7d;
/* rgb */ color: rgb(157, 31, 125);
/* oklch */ color: oklch(48.3% 0.185 340.8);
Tailwind
colors: {
  custom: {
    50: '#be6aa3',
    500: '#9d1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f7d;
$custom-light: #be6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f7d",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 315.238,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48305,
    "c": 0.18548,
    "h": 340.8
  },
  "luminance": 0.09629
}

Semantic roles & 50–950 ramp

primary
#9D1F7D
secondary
#56C271
accent
#EA6A3E
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9D1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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