#9F217F#9F217F

#9F217F is a mid, vivid pink. Relative luminance 0.100; OKLCH L 48.9% C 0.186 H 340.7°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#9F217F
RGBrgb(159, 33, 127)
HSLhsl(315, 66%, 38%)
HSVhsv(315, 79%, 62%)
CMYKcmyk(0%, 79.2%, 20.1%, 37.6%)
CIE-LABlab(37.83, 58.64, -22.78)
CIE-LCHlch(37.83, 62.91, 338.77°)
OKLaboklab(48.88% 0.1756 -0.0615)
OKLCHoklch(48.88% 0.186 340.7)
XYZxyz(18.6733, 9.9929, 21.0200)
Luminance0.0999 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F217F #219F41
analogous
#80219F #9F217F #9F2140
triadic
#9F217F #7F9F21 #217F9F
tetradic
#9F217F #9F8021 #219F41 #21409F
square
#9F217F #9F8021 #219F41 #21409F
split-complementary
#9F217F #409F21 #219F80
monochromatic
#3A0C2E #6C1657 #9F217F #D22CA7 #DD5DBD

Accessibility & contrast

On white

7.00
#9F217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#9F217F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F217F
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F217F#FFFFFF#000000##FFFFFF
##9F217F1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4C81
Deuteranopia (green-blind)
#56607C
Tritanopia (blue-blind)
#A9254E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f217f;
/* rgb */ color: rgb(159, 33, 127);
/* oklch */ color: oklch(48.9% 0.186 340.7);
Tailwind
colors: {
  custom: {
    50: '#bf6ba4',
    500: '#9f217f',
    950: '#000000',
  },
}
SCSS
$custom: #9f217f;
$custom-light: #bf6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f217f",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 315.238,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48879,
    "c": 0.18606,
    "h": 340.7
  },
  "luminance": 0.09991
}

Semantic roles & 50–950 ramp

primary
#9F217F
secondary
#5AC274
accent
#E96A3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #9F217F

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

Preview Lab → · Contrast checker → · Palette generator →

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