#9F218C#9F218C

#9F218C is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.195 H 335.3°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#9F218C
RGBrgb(159, 33, 140)
HSLhsl(309, 66%, 38%)
HSVhsv(309, 79%, 62%)
CMYKcmyk(0%, 79.2%, 11.9%, 37.6%)
CIE-LABlab(38.47, 60.49, -29.80)
CIE-LCHlch(38.47, 67.44, 333.77°)
OKLaboklab(49.55% 0.1769 -0.0815)
OKLCHoklch(49.55% 0.195 335.3)
XYZxyz(19.5758, 10.3539, 25.7734)
Luminance0.1035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F218C #219F34
analogous
#73219F #9F218C #9F214D
triadic
#9F218C #8C9F21 #218C9F
tetradic
#9F218C #9F7321 #219F34 #214D9F
square
#9F218C #9F7321 #219F34 #214D9F
split-complementary
#9F218C #4D9F21 #219F73
monochromatic
#3A0C33 #6C165F #9F218C #D22CB9 #DD5DCA

Accessibility & contrast

On white

6.84
#9F218C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#9F218C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F218C
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F218C#FFFFFF#000000##FFFFFF
##9F218C1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214F8F
Deuteranopia (green-blind)
#506189
Tritanopia (blue-blind)
#A72C55
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f218c;
/* rgb */ color: rgb(159, 33, 140);
/* oklch */ color: oklch(49.5% 0.195 335.3);
Tailwind
colors: {
  custom: {
    50: '#bf6cae',
    500: '#9f218c',
    950: '#000000',
  },
}
SCSS
$custom: #9f218c;
$custom-light: #bf6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f218c",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 309.048,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49548,
    "c": 0.19478,
    "h": 335.3
  },
  "luminance": 0.10352
}

Semantic roles & 50–950 ramp

primary
#9F218C
secondary
#5AC26A
accent
#E9593F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F218C

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

Preview Lab → · Contrast checker → · Palette generator →

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