#9F217B#9F217B

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

Color values

HEX#9F217B
RGBrgb(159, 33, 123)
HSLhsl(317, 66%, 38%)
HSVhsv(317, 79%, 62%)
CMYKcmyk(0%, 79.2%, 22.6%, 37.6%)
CIE-LABlab(37.65, 58.11, -20.58)
CIE-LCHlch(37.65, 61.64, 340.50°)
OKLaboklab(48.69% 0.175 -0.0552)
OKLCHoklch(48.69% 0.184 342.5)
XYZxyz(18.4178, 9.8907, 19.6742)
Luminance0.0989 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F217B #219F45
analogous
#84219F #9F217B #9F213C
triadic
#9F217B #7B9F21 #217B9F
tetradic
#9F217B #9F8421 #219F45 #213C9F
square
#9F217B #9F8421 #219F45 #213C9F
split-complementary
#9F217B #3C9F21 #219F84
monochromatic
#3A0C2D #6C1654 #9F217B #D22CA2 #DD5DB9

Accessibility & contrast

On white

7.05
#9F217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9F217B
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F217B#FFFFFF#000000##FFFFFF
##9F217B1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4B7D
Deuteranopia (green-blind)
#576078
Tritanopia (blue-blind)
#A9224C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f217b;
/* rgb */ color: rgb(159, 33, 123);
/* oklch */ color: oklch(48.7% 0.184 342.5);
Tailwind
colors: {
  custom: {
    50: '#bf6ba1',
    500: '#9f217b',
    950: '#000000',
  },
}
SCSS
$custom: #9f217b;
$custom-light: #bf6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f217b",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 317.143,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48686,
    "c": 0.18354,
    "h": 342.5
  },
  "luminance": 0.09889
}

Semantic roles & 50–950 ramp

primary
#9F217B
secondary
#5AC278
accent
#E9703F
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080F
muted
#827A7E

Preview Lab

Preview with #9F217B

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

Preview Lab → · Contrast checker → · Palette generator →

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