#9E21CA#9E21CA

#9E21CA is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.4% C 0.242 H 314.7°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9E21CA
RGBrgb(158, 33, 202)
HSLhsl(284, 72%, 46%)
HSVhsv(284, 84%, 79%)
CMYKcmyk(21.8%, 83.7%, 0%, 20.8%)
CIE-LABlab(42.19, 70.84, -60.84)
CIE-LCHlch(42.19, 93.38, 319.34°)
OKLaboklab(53.38% 0.1701 -0.1721)
OKLCHoklch(53.38% 0.242 314.7)
XYZxyz(25.3033, 12.6220, 56.9691)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E21CA #4DCA21
analogous
#4A21CA #9E21CA #CA21A1
triadic
#9E21CA #CA9E21 #21CA9E
tetradic
#9E21CA #CA4A21 #4DCA21 #21A1CA
square
#9E21CA #CA4A21 #4DCA21 #21A1CA
split-complementary
#9E21CA #A1CA21 #21CA4A
monochromatic
#4C1061 #751895 #9E21CA #B947E1 #CD7CEA

Accessibility & contrast

On white

5.96
#9E21CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9E21CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E21CA
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E21CA#FFFFFF#000000##FFFFFF
##9E21CA1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0D66C7
Tritanopia (blue-blind)
#9A4D79
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9e21ca;
/* rgb */ color: rgb(158, 33, 202);
/* oklch */ color: oklch(53.4% 0.242 314.7);
Tailwind
colors: {
  custom: {
    50: '#c06fdb',
    500: '#9e21ca',
    950: '#000000',
  },
}
SCSS
$custom: #9e21ca;
$custom-light: #c06fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9e21ca",
  "rgb": {
    "r": 158,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 284.379,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53381,
    "c": 0.24192,
    "h": 314.7
  },
  "luminance": 0.12621
}

Semantic roles & 50–950 ramp

primary
#9E21CA
secondary
#8DD275
accent
#EF3968
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9E21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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