#9D1F7C#9D1F7C

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

Color values

HEX#9D1F7C
RGBrgb(157, 31, 124)
HSLhsl(316, 67%, 37%)
HSVhsv(316, 80%, 62%)
CMYKcmyk(0%, 80.3%, 21%, 38.4%)
CIE-LABlab(37.12, 58.32, -22.04)
CIE-LCHlch(37.12, 62.35, 339.30°)
OKLaboklab(48.26% 0.1751 -0.0594)
OKLCHoklch(48.26% 0.185 341.3)
XYZxyz(18.0333, 9.6052, 19.9692)
Luminance0.0960 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F7C #1F9D40
analogous
#7F1F9D #9D1F7C #9D1F3D
triadic
#9D1F7C #7C9D1F #1F7C9D
tetradic
#9D1F7C #9D7F1F #1F9D40 #1F3D9D
square
#9D1F7C #9D7F1F #1F9D40 #1F3D9D
split-complementary
#9D1F7C #3D9D1F #1F9D7F
monochromatic
#370B2B #6A1554 #9D1F7C #D029A4 #DE58BB

Accessibility & contrast

On white

7.19
#9D1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#9D1F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1F7C
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F7C#FFFFFF#000000##FFFFFF
##9D1F7C1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4A7E
Deuteranopia (green-blind)
#545F79
Tritanopia (blue-blind)
#A7224C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9d1f7c;
/* rgb */ color: rgb(157, 31, 124);
/* oklch */ color: oklch(48.3% 0.185 341.3);
Tailwind
colors: {
  custom: {
    50: '#be6aa2',
    500: '#9d1f7c',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f7c;
$custom-light: #be6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f7c",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 315.714,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48256,
    "c": 0.18485,
    "h": 341.3
  },
  "luminance": 0.09603
}

Semantic roles & 50–950 ramp

primary
#9D1F7C
secondary
#56C272
accent
#EA6B3E
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9D1F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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