#9D217E#9D217E

#9D217E is a mid, vivid pink. Relative luminance 0.098; OKLCH L 48.5% C 0.184 H 340.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#9D217E
RGBrgb(157, 33, 126)
HSLhsl(315, 65%, 37%)
HSVhsv(315, 79%, 62%)
CMYKcmyk(0%, 79%, 19.7%, 38.4%)
CIE-LABlab(37.42, 58.03, -22.83)
CIE-LCHlch(37.42, 62.36, 338.52°)
OKLaboklab(48.5% 0.1736 -0.0616)
OKLCHoklch(48.5% 0.184 340.5)
XYZxyz(18.2149, 9.7640, 20.6600)
Luminance0.0976 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D217E #219D40
analogous
#7E219D #9D217E #9D2140
triadic
#9D217E #7E9D21 #217E9D
tetradic
#9D217E #9D7E21 #219D40 #21409D
square
#9D217E #9D7E21 #219D40 #21409D
split-complementary
#9D217E #409D21 #219D7E
monochromatic
#380C2D #6A1655 #9D217E #D02CA7 #DD5CBC

Accessibility & contrast

On white

7.11
#9D217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D217E
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D217E#FFFFFF#000000##FFFFFF
##9D217E1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B80
Deuteranopia (green-blind)
#545F7B
Tritanopia (blue-blind)
#A7254E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d217e;
/* rgb */ color: rgb(157, 33, 126);
/* oklch */ color: oklch(48.5% 0.184 340.5);
Tailwind
colors: {
  custom: {
    50: '#be6ba3',
    500: '#9d217e',
    950: '#000000',
  },
}
SCSS
$custom: #9d217e;
$custom-light: #be6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d217e",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 315,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48497,
    "c": 0.18422,
    "h": 340.5
  },
  "luminance": 0.09762
}

Semantic roles & 50–950 ramp

primary
#9D217E
secondary
#59C173
accent
#E86A40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9D217E

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

Preview Lab → · Contrast checker → · Palette generator →

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