#9D217C#9D217C

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

Color values

HEX#9D217C
RGBrgb(157, 33, 124)
HSLhsl(316, 65%, 37%)
HSVhsv(316, 79%, 62%)
CMYKcmyk(0%, 79%, 21%, 38.4%)
CIE-LABlab(37.32, 57.76, -21.73)
CIE-LCHlch(37.32, 61.71, 339.38°)
OKLaboklab(48.4% 0.1733 -0.0585)
OKLCHoklch(48.4% 0.183 341.3)
XYZxyz(18.0872, 9.7129, 19.9871)
Luminance0.0971 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D217C #219D42
analogous
#80219D #9D217C #9D213E
triadic
#9D217C #7C9D21 #217C9D
tetradic
#9D217C #9D8021 #219D42 #213E9D
square
#9D217C #9D8021 #219D42 #213E9D
split-complementary
#9D217C #3E9D21 #219D80
monochromatic
#380C2C #6A1654 #9D217C #D02CA4 #DD5CBA

Accessibility & contrast

On white

7.14
#9D217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#9D217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D217C
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D217C#FFFFFF#000000##FFFFFF
##9D217C1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d217c;
/* rgb */ color: rgb(157, 33, 124);
/* oklch */ color: oklch(48.4% 0.183 341.3);
Tailwind
colors: {
  custom: {
    50: '#be6ba2',
    500: '#9d217c',
    950: '#000000',
  },
}
SCSS
$custom: #9d217c;
$custom-light: #be6ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d217c",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 315.968,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48399,
    "c": 0.18293,
    "h": 341.3
  },
  "luminance": 0.09711
}

Semantic roles & 50–950 ramp

primary
#9D217C
secondary
#59C175
accent
#E86C40
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9D217C

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

Preview Lab → · Contrast checker → · Palette generator →

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