#9F218D#9F218D

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

Color values

HEX#9F218D
RGBrgb(159, 33, 141)
HSLhsl(309, 66%, 38%)
HSVhsv(309, 79%, 62%)
CMYKcmyk(0%, 79.2%, 11.3%, 37.6%)
CIE-LABlab(38.52, 60.64, -30.34)
CIE-LCHlch(38.52, 67.81, 333.42°)
OKLaboklab(49.6% 0.177 -0.083)
OKLCHoklch(49.6% 0.195 334.9)
XYZxyz(19.6499, 10.3835, 26.1635)
Luminance0.1038 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F218D #219F33
analogous
#72219F #9F218D #9F214E
triadic
#9F218D #8D9F21 #218D9F
tetradic
#9F218D #9F7221 #219F33 #214E9F
square
#9F218D #9F7221 #219F33 #214E9F
split-complementary
#9F218D #4E9F21 #219F72
monochromatic
#3A0C33 #6C1660 #9F218D #D22CBA #DD5DCB

Accessibility & contrast

On white

6.83
#9F218D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9F218D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F218D
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F218D#FFFFFF#000000##FFFFFF
##9F218D1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F90
Deuteranopia (green-blind)
#50618A
Tritanopia (blue-blind)
#A72D56
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f218d;
/* rgb */ color: rgb(159, 33, 141);
/* oklch */ color: oklch(49.6% 0.195 334.9);
Tailwind
colors: {
  custom: {
    50: '#bf6cae',
    500: '#9f218d',
    950: '#000000',
  },
}
SCSS
$custom: #9f218d;
$custom-light: #bf6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f218d",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 308.571,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49602,
    "c": 0.19548,
    "h": 334.9
  },
  "luminance": 0.10382
}

Semantic roles & 50–950 ramp

primary
#9F218D
secondary
#5AC269
accent
#E9573F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F218D

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

Preview Lab → · Contrast checker → · Palette generator →

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