#9F218E#9F218E

#9F218E is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.7% C 0.196 H 334.5°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#9F218E
RGBrgb(159, 33, 142)
HSLhsl(308, 66%, 38%)
HSVhsv(308, 79%, 62%)
CMYKcmyk(0%, 79.2%, 10.7%, 37.6%)
CIE-LABlab(38.57, 60.79, -30.87)
CIE-LCHlch(38.57, 68.18, 333.08°)
OKLaboklab(49.66% 0.177 -0.0846)
OKLCHoklch(49.66% 0.196 334.5)
XYZxyz(19.7246, 10.4134, 26.5571)
Luminance0.1041 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F218E #219F32
analogous
#71219F #9F218E #9F214F
triadic
#9F218E #8E9F21 #218E9F
tetradic
#9F218E #9F7121 #219F32 #214F9F
square
#9F218E #9F7121 #219F32 #214F9F
split-complementary
#9F218E #4F9F21 #219F71
monochromatic
#3A0C33 #6C1661 #9F218E #D22CBB #DD5DCC

Accessibility & contrast

On white

6.81
#9F218E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F218E
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F218E#FFFFFF#000000##FFFFFF
##9F218E1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4F91
Deuteranopia (green-blind)
#4F618B
Tritanopia (blue-blind)
#A72E57
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f218e;
/* rgb */ color: rgb(159, 33, 142);
/* oklch */ color: oklch(49.7% 0.196 334.5);
Tailwind
colors: {
  custom: {
    50: '#bf6caf',
    500: '#9f218e',
    950: '#000000',
  },
}
SCSS
$custom: #9f218e;
$custom-light: #bf6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9f218e",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 308.095,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49656,
    "c": 0.19618,
    "h": 334.5
  },
  "luminance": 0.10412
}

Semantic roles & 50–950 ramp

primary
#9F218E
secondary
#5AC268
accent
#E9563F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F218E

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

Preview Lab → · Contrast checker → · Palette generator →

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