#9F217E#9F217E

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

Color values

HEX#9F217E
RGBrgb(159, 33, 126)
HSLhsl(316, 66%, 38%)
HSVhsv(316, 79%, 62%)
CMYKcmyk(0%, 79.2%, 20.8%, 37.6%)
CIE-LABlab(37.78, 58.51, -22.23)
CIE-LCHlch(37.78, 62.59, 339.19°)
OKLaboklab(48.83% 0.1755 -0.0599)
OKLCHoklch(48.83% 0.185 341.2)
XYZxyz(18.6084, 9.9669, 20.6784)
Luminance0.0997 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F217E #219F42
analogous
#81219F #9F217E #9F213F
triadic
#9F217E #7E9F21 #217E9F
tetradic
#9F217E #9F8121 #219F42 #213F9F
square
#9F217E #9F8121 #219F42 #213F9F
split-complementary
#9F217E #3F9F21 #219F81
monochromatic
#3A0C2E #6C1656 #9F217E #D22CA6 #DD5DBC

Accessibility & contrast

On white

7.02
#9F217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9F217E
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F217E#FFFFFF#000000##FFFFFF
##9F217E1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4C80
Deuteranopia (green-blind)
#56607B
Tritanopia (blue-blind)
#A9244E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f217e;
/* rgb */ color: rgb(159, 33, 126);
/* oklch */ color: oklch(48.8% 0.185 341.2);
Tailwind
colors: {
  custom: {
    50: '#bf6ba3',
    500: '#9f217e',
    950: '#000000',
  },
}
SCSS
$custom: #9f217e;
$custom-light: #bf6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f217e",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 315.714,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4883,
    "c": 0.18542,
    "h": 341.2
  },
  "luminance": 0.09965
}

Semantic roles & 50–950 ramp

primary
#9F217E
secondary
#5AC275
accent
#E96C3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #9F217E

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

Preview Lab → · Contrast checker → · Palette generator →

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