#9F218A#9F218A

#9F218A is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.4% C 0.193 H 336.1°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#9F218A
RGBrgb(159, 33, 138)
HSLhsl(310, 66%, 38%)
HSVhsv(310, 79%, 62%)
CMYKcmyk(0%, 79.2%, 13.2%, 37.6%)
CIE-LABlab(38.37, 60.20, -28.74)
CIE-LCHlch(38.37, 66.71, 334.48°)
OKLaboklab(49.44% 0.1768 -0.0784)
OKLCHoklch(49.44% 0.193 336.1)
XYZxyz(19.4297, 10.2954, 25.0038)
Luminance0.1029 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F218A #219F36
analogous
#75219F #9F218A #9F214B
triadic
#9F218A #8A9F21 #218A9F
tetradic
#9F218A #9F7521 #219F36 #214B9F
square
#9F218A #9F7521 #219F36 #214B9F
split-complementary
#9F218A #4B9F21 #219F75
monochromatic
#3A0C32 #6C165E #9F218A #D22CB6 #DD5DC8

Accessibility & contrast

On white

6.87
#9F218A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9F218A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F218A
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F218A#FFFFFF#000000##FFFFFF
##9F218A1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234E8D
Deuteranopia (green-blind)
#516187
Tritanopia (blue-blind)
#A72B54
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f218a;
/* rgb */ color: rgb(159, 33, 138);
/* oklch */ color: oklch(49.4% 0.193 336.1);
Tailwind
colors: {
  custom: {
    50: '#bf6cac',
    500: '#9f218a',
    950: '#000000',
  },
}
SCSS
$custom: #9f218a;
$custom-light: #bf6cac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f218a",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 310,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49441,
    "c": 0.19339,
    "h": 336.1
  },
  "luminance": 0.10294
}

Semantic roles & 50–950 ramp

primary
#9F218A
secondary
#5AC26B
accent
#E95B3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F218A

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

Preview Lab → · Contrast checker → · Palette generator →

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