#9D217D#9D217D

#9D217D is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.4% C 0.184 H 340.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#9D217D
RGBrgb(157, 33, 125)
HSLhsl(315, 65%, 37%)
HSVhsv(315, 79%, 62%)
CMYKcmyk(0%, 79%, 20.4%, 38.4%)
CIE-LABlab(37.37, 57.89, -22.28)
CIE-LCHlch(37.37, 62.03, 338.95°)
OKLaboklab(48.45% 0.1735 -0.0601)
OKLCHoklch(48.45% 0.184 340.9)
XYZxyz(18.1507, 9.7384, 20.3219)
Luminance0.0974 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D217D #219D41
analogous
#7F219D #9D217D #9D213F
triadic
#9D217D #7D9D21 #217D9D
tetradic
#9D217D #9D7F21 #219D41 #213F9D
square
#9D217D #9D7F21 #219D41 #213F9D
split-complementary
#9D217D #3F9D21 #219D7F
monochromatic
#380C2C #6A1655 #9D217D #D02CA5 #DD5CBB

Accessibility & contrast

On white

7.13
#9D217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#9D217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D217D
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D217D#FFFFFF#000000##FFFFFF
##9D217D1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4B7F
Deuteranopia (green-blind)
#555F7A
Tritanopia (blue-blind)
#A7244D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d217d;
/* rgb */ color: rgb(157, 33, 125);
/* oklch */ color: oklch(48.4% 0.184 340.9);
Tailwind
colors: {
  custom: {
    50: '#be6ba3',
    500: '#9d217d',
    950: '#000000',
  },
}
SCSS
$custom: #9d217d;
$custom-light: #be6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d217d",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 315.484,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48448,
    "c": 0.18357,
    "h": 340.9
  },
  "luminance": 0.09736
}

Semantic roles & 50–950 ramp

primary
#9D217D
secondary
#59C174
accent
#E86B40
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9D217D

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

Preview Lab → · Contrast checker → · Palette generator →

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