#9D217F#9D217F

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

Color values

HEX#9D217F
RGBrgb(157, 33, 127)
HSLhsl(315, 65%, 37%)
HSVhsv(315, 79%, 62%)
CMYKcmyk(0%, 79%, 19.1%, 38.4%)
CIE-LABlab(37.46, 58.17, -23.38)
CIE-LCHlch(37.46, 62.69, 338.10°)
OKLaboklab(48.55% 0.1737 -0.0632)
OKLCHoklch(48.55% 0.185 340)
XYZxyz(18.2798, 9.7900, 21.0015)
Luminance0.0979 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D217F #219D3F
analogous
#7D219D #9D217F #9D2141
triadic
#9D217F #7F9D21 #217F9D
tetradic
#9D217F #9D7D21 #219D3F #21419D
square
#9D217F #9D7D21 #219D3F #21419D
split-complementary
#9D217F #419D21 #219D7D
monochromatic
#380C2D #6A1656 #9D217F #D02CA8 #DD5CBD

Accessibility & contrast

On white

7.10
#9D217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#9D217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D217F
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D217F#FFFFFF#000000##FFFFFF
##9D217F1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4C81
Deuteranopia (green-blind)
#545F7C
Tritanopia (blue-blind)
#A7264E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d217f;
/* rgb */ color: rgb(157, 33, 127);
/* oklch */ color: oklch(48.5% 0.185 340.0);
Tailwind
colors: {
  custom: {
    50: '#be6ba4',
    500: '#9d217f',
    950: '#000000',
  },
}
SCSS
$custom: #9d217f;
$custom-light: #be6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d217f",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 314.516,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48546,
    "c": 0.18487,
    "h": 340
  },
  "luminance": 0.09788
}

Semantic roles & 50–950 ramp

primary
#9D217F
secondary
#59C172
accent
#E86840
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9D217F

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

Preview Lab → · Contrast checker → · Palette generator →

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