#9F21BC#9F21BC

#9F21BC is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.5% C 0.231 H 318.9°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9F21BC
RGBrgb(159, 33, 188)
HSLhsl(289, 70%, 43%)
HSVhsv(289, 82%, 74%)
CMYKcmyk(15.4%, 82.4%, 0%, 26.3%)
CIE-LABlab(41.36, 68.43, -53.99)
CIE-LCHlch(41.36, 87.16, 321.72°)
OKLaboklab(52.52% 0.174 -0.1519)
OKLCHoklch(52.52% 0.231 318.9)
XYZxyz(23.9178, 12.0907, 48.6411)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F21BC #3EBC21
analogous
#5121BC #9F21BC #BC218B
triadic
#9F21BC #BC9F21 #21BC9F
tetradic
#9F21BC #BC5121 #3EBC21 #218BBC
square
#9F21BC #BC5121 #3EBC21 #218BBC
split-complementary
#9F21BC #8BBC21 #21BC51
monochromatic
#470F54 #731888 #9F21BC #BF3DDD #D071E6

Accessibility & contrast

On white

6.14
#9F21BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#9F21BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F21BC
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F21BC#FFFFFF#000000##FFFFFF
##9F21BC1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#2D65B9
Tritanopia (blue-blind)
#9E4671
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9f21bc;
/* rgb */ color: rgb(159, 33, 188);
/* oklch */ color: oklch(52.5% 0.231 318.9);
Tailwind
colors: {
  custom: {
    50: '#c06ed1',
    500: '#9f21bc',
    950: '#000000',
  },
}
SCSS
$custom: #9f21bc;
$custom-light: #c06ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f21bc",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 288.774,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52522,
    "c": 0.23103,
    "h": 318.9
  },
  "luminance": 0.12089
}

Semantic roles & 50–950 ramp

primary
#9F21BC
secondary
#7ECD6C
accent
#ED3B5C
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9F21BC

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

Preview Lab → · Contrast checker → · Palette generator →

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