#9F217A#9F217A

#9F217A is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.6% C 0.183 H 342.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#9F217A
RGBrgb(159, 33, 122)
HSLhsl(318, 66%, 38%)
HSVhsv(318, 79%, 62%)
CMYKcmyk(0%, 79.2%, 23.3%, 37.6%)
CIE-LABlab(37.60, 57.97, -20.02)
CIE-LCHlch(37.60, 61.33, 340.95°)
OKLaboklab(48.64% 0.1749 -0.0537)
OKLCHoklch(48.64% 0.183 342.9)
XYZxyz(18.3555, 9.8658, 19.3462)
Luminance0.0986 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F217A #219F46
analogous
#85219F #9F217A #9F213B
triadic
#9F217A #7A9F21 #217A9F
tetradic
#9F217A #9F8521 #219F46 #213B9F
square
#9F217A #9F8521 #219F46 #213B9F
split-complementary
#9F217A #3B9F21 #219F85
monochromatic
#3A0C2C #6C1653 #9F217A #D22CA1 #DD5DB8

Accessibility & contrast

On white

7.06
#9F217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#9F217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F217A
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F217A#FFFFFF#000000##FFFFFF
##9F217A1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4B7C
Deuteranopia (green-blind)
#576077
Tritanopia (blue-blind)
#A9224B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9f217a;
/* rgb */ color: rgb(159, 33, 122);
/* oklch */ color: oklch(48.6% 0.183 342.9);
Tailwind
colors: {
  custom: {
    50: '#bf6ba0',
    500: '#9f217a',
    950: '#000000',
  },
}
SCSS
$custom: #9f217a;
$custom-light: #bf6ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f217a",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 317.619,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48638,
    "c": 0.18292,
    "h": 342.9
  },
  "luminance": 0.09864
}

Semantic roles & 50–950 ramp

primary
#9F217A
secondary
#5AC278
accent
#E9713F
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #9F217A

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

Preview Lab → · Contrast checker → · Palette generator →

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