#9D217B#9D217B

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

Color values

HEX#9D217B
RGBrgb(157, 33, 123)
HSLhsl(316, 65%, 37%)
HSVhsv(316, 79%, 62%)
CMYKcmyk(0%, 79%, 21.7%, 38.4%)
CIE-LABlab(37.28, 57.62, -21.18)
CIE-LCHlch(37.28, 61.39, 339.82°)
OKLaboklab(48.35% 0.1732 -0.0569)
OKLCHoklch(48.35% 0.182 341.8)
XYZxyz(18.0243, 9.6878, 19.6558)
Luminance0.0969 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D217B #219D43
analogous
#81219D #9D217B #9D213D
triadic
#9D217B #7B9D21 #217B9D
tetradic
#9D217B #9D8121 #219D43 #213D9D
square
#9D217B #9D8121 #219D43 #213D9D
split-complementary
#9D217B #3D9D21 #219D81
monochromatic
#380C2C #6A1653 #9D217B #D02CA3 #DD5CB9

Accessibility & contrast

On white

7.15
#9D217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D217B
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D217B#FFFFFF#000000##FFFFFF
##9D217B1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4B7D
Deuteranopia (green-blind)
#555F78
Tritanopia (blue-blind)
#A7234C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d217b;
/* rgb */ color: rgb(157, 33, 123);
/* oklch */ color: oklch(48.4% 0.182 341.8);
Tailwind
colors: {
  custom: {
    50: '#be6ba1',
    500: '#9d217b',
    950: '#000000',
  },
}
SCSS
$custom: #9d217b;
$custom-light: #be6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d217b",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 316.452,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48351,
    "c": 0.18229,
    "h": 341.8
  },
  "luminance": 0.09686
}

Semantic roles & 50–950 ramp

primary
#9D217B
secondary
#59C175
accent
#E86E40
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070F
muted
#827A7E

Preview Lab

Preview with #9D217B

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

Preview Lab → · Contrast checker → · Palette generator →

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