#9F217D#9F217D

#9F217D is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.8% C 0.185 H 341.6°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#9F217D
RGBrgb(159, 33, 125)
HSLhsl(316, 66%, 38%)
HSVhsv(316, 79%, 62%)
CMYKcmyk(0%, 79.2%, 21.4%, 37.6%)
CIE-LABlab(37.74, 58.37, -21.68)
CIE-LCHlch(37.74, 62.27, 339.62°)
OKLaboklab(48.78% 0.1753 -0.0583)
OKLCHoklch(48.78% 0.185 341.6)
XYZxyz(18.5442, 9.9413, 20.3403)
Luminance0.0994 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F217D #219F43
analogous
#82219F #9F217D #9F213E
triadic
#9F217D #7D9F21 #217D9F
tetradic
#9F217D #9F8221 #219F43 #213E9F
square
#9F217D #9F8221 #219F43 #213E9F
split-complementary
#9F217D #3E9F21 #219F82
monochromatic
#3A0C2D #6C1655 #9F217D #D22CA5 #DD5DBB

Accessibility & contrast

On white

7.03
#9F217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9F217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F217D
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F217D#FFFFFF#000000##FFFFFF
##9F217D1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4C7F
Deuteranopia (green-blind)
#56607A
Tritanopia (blue-blind)
#A9244D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f217d;
/* rgb */ color: rgb(159, 33, 125);
/* oklch */ color: oklch(48.8% 0.185 341.6);
Tailwind
colors: {
  custom: {
    50: '#bf6ba3',
    500: '#9f217d',
    950: '#000000',
  },
}
SCSS
$custom: #9f217d;
$custom-light: #bf6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f217d",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 316.19,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48781,
    "c": 0.18479,
    "h": 341.6
  },
  "luminance": 0.09939
}

Semantic roles & 50–950 ramp

primary
#9F217D
secondary
#5AC276
accent
#E96D3F
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13080F
muted
#827A7F

Preview Lab

Preview with #9F217D

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

Preview Lab → · Contrast checker → · Palette generator →

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