#9F217C#9F217C

#9F217C is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.7% C 0.184 H 342.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#9F217C
RGBrgb(159, 33, 124)
HSLhsl(317, 66%, 38%)
HSVhsv(317, 79%, 62%)
CMYKcmyk(0%, 79.2%, 22%, 37.6%)
CIE-LABlab(37.69, 58.24, -21.13)
CIE-LCHlch(37.69, 61.95, 340.06°)
OKLaboklab(48.73% 0.1752 -0.0568)
OKLCHoklch(48.73% 0.184 342)
XYZxyz(18.4807, 9.9158, 20.0056)
Luminance0.0991 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F217C #219F44
analogous
#83219F #9F217C #9F213D
triadic
#9F217C #7C9F21 #217C9F
tetradic
#9F217C #9F8321 #219F44 #213D9F
square
#9F217C #9F8321 #219F44 #213D9F
split-complementary
#9F217C #3D9F21 #219F83
monochromatic
#3A0C2D #6C1654 #9F217C #D22CA4 #DD5DBA

Accessibility & contrast

On white

7.04
#9F217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9F217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F217C
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F217C#FFFFFF#000000##FFFFFF
##9F217C1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4C7E
Deuteranopia (green-blind)
#576079
Tritanopia (blue-blind)
#A9234D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f217c;
/* rgb */ color: rgb(159, 33, 124);
/* oklch */ color: oklch(48.7% 0.184 342.0);
Tailwind
colors: {
  custom: {
    50: '#bf6ba2',
    500: '#9f217c',
    950: '#000000',
  },
}
SCSS
$custom: #9f217c;
$custom-light: #bf6ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f217c",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 316.667,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48733,
    "c": 0.18416,
    "h": 342
  },
  "luminance": 0.09914
}

Semantic roles & 50–950 ramp

primary
#9F217C
secondary
#5AC277
accent
#E96E3F
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13080F
muted
#827A7F

Preview Lab

Preview with #9F217C

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

Preview Lab → · Contrast checker → · Palette generator →

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