#9E21C3#9E21C3

#9E21C3 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.9% C 0.236 H 316.6°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9E21C3
RGBrgb(158, 33, 195)
HSLhsl(286, 71%, 45%)
HSVhsv(286, 83%, 76%)
CMYKcmyk(19%, 83.1%, 0%, 23.5%)
CIE-LABlab(41.69, 69.53, -57.57)
CIE-LCHlch(41.69, 90.28, 320.38°)
OKLaboklab(52.87% 0.1716 -0.1625)
OKLCHoklch(52.87% 0.236 316.6)
XYZxyz(24.4932, 12.2980, 52.7027)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E21C3 #46C321
analogous
#4D21C3 #9E21C3 #C32197
triadic
#9E21C3 #C39E21 #21C39E
tetradic
#9E21C3 #C34D21 #46C321 #2197C3
square
#9E21C3 #C34D21 #46C321 #2197C3
split-complementary
#9E21C3 #97C321 #21C34D
monochromatic
#490F5A #74188F #9E21C3 #BB42DF #CE77E8

Accessibility & contrast

On white

6.07
#9E21C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9E21C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E21C3
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E21C3#FFFFFF#000000##FFFFFF
##9E21C31.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC7
Deuteranopia (green-blind)
#2066C0
Tritanopia (blue-blind)
#9C4A75
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9e21c3;
/* rgb */ color: rgb(158, 33, 195);
/* oklch */ color: oklch(52.9% 0.236 316.6);
Tailwind
colors: {
  custom: {
    50: '#c06ed6',
    500: '#9e21c3',
    950: '#000000',
  },
}
SCSS
$custom: #9e21c3;
$custom-light: #c06ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e21c3",
  "rgb": {
    "r": 158,
    "g": 33,
    "b": 195
  },
  "hsl": {
    "h": 286.296,
    "s": 71.053,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52873,
    "c": 0.23628,
    "h": 316.6
  },
  "luminance": 0.12297
}

Semantic roles & 50–950 ramp

primary
#9E21C3
secondary
#86CF71
accent
#EE3A63
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130814
muted
#827B83

Preview Lab

Preview with #9E21C3

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

Preview Lab → · Contrast checker → · Palette generator →

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