#9E21BC#9E21BC

#9E21BC is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.4% C 0.231 H 318.5°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9E21BC
RGBrgb(158, 33, 188)
HSLhsl(288, 70%, 43%)
HSVhsv(288, 82%, 74%)
CMYKcmyk(16%, 82.4%, 0%, 26.3%)
CIE-LABlab(41.20, 68.25, -54.26)
CIE-LCHlch(41.20, 87.19, 321.51°)
OKLaboklab(52.38% 0.1729 -0.1528)
OKLCHoklch(52.38% 0.231 318.5)
XYZxyz(23.7203, 11.9888, 48.6318)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E21BC #3FBC21
analogous
#5021BC #9E21BC #BC218C
triadic
#9E21BC #BC9E21 #21BC9E
tetradic
#9E21BC #BC5021 #3FBC21 #218CBC
square
#9E21BC #BC5021 #3FBC21 #218CBC
split-complementary
#9E21BC #8CBC21 #21BC50
monochromatic
#460F54 #721888 #9E21BC #BE3DDD #D071E6

Accessibility & contrast

On white

6.18
#9E21BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9E21BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E21BC
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E21BC#FFFFFF#000000##FFFFFF
##9E21BC1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#2B65B9
Tritanopia (blue-blind)
#9D4671
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9e21bc;
/* rgb */ color: rgb(158, 33, 188);
/* oklch */ color: oklch(52.4% 0.231 318.5);
Tailwind
colors: {
  custom: {
    50: '#bf6ed1',
    500: '#9e21bc',
    950: '#000000',
  },
}
SCSS
$custom: #9e21bc;
$custom-light: #bf6ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e21bc",
  "rgb": {
    "r": 158,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 288.387,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52377,
    "c": 0.23068,
    "h": 318.5
  },
  "luminance": 0.11988
}

Semantic roles & 50–950 ramp

primary
#9E21BC
secondary
#7FCD6C
accent
#ED3B5D
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9E21BC

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

Preview Lab → · Contrast checker → · Palette generator →

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