#9E20A7#9E20A7

#9E20A7 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.9% C 0.215 H 325.1°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#9E20A7
RGBrgb(158, 32, 167)
HSLhsl(296, 68%, 39%)
HSVhsv(296, 81%, 65%)
CMYKcmyk(5.4%, 80.8%, 0%, 34.5%)
CIE-LABlab(39.74, 64.83, -44.16)
CIE-LCHlch(39.74, 78.45, 325.74°)
OKLaboklab(50.91% 0.1763 -0.1232)
OKLCHoklch(50.91% 0.215 325.1)
XYZxyz(21.5916, 11.0936, 37.5558)
Luminance0.1109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E20A7 #29A720
analogous
#5B20A7 #9E20A7 #A7206D
triadic
#9E20A7 #A79E20 #20A79E
tetradic
#9E20A7 #A75B20 #29A720 #206DA7
square
#9E20A7 #A75B20 #29A720 #206DA7
split-complementary
#9E20A7 #6DA720 #20A75B
monochromatic
#3D0C40 #6D1674 #9E20A7 #CC2DD7 #D861E1

Accessibility & contrast

On white

6.52
#9E20A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9E20A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E20A7
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E20A7#FFFFFF#000000##FFFFFF
##9E20A71.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AA
Deuteranopia (green-blind)
#3F63A4
Tritanopia (blue-blind)
#A23B65
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9e20a7;
/* rgb */ color: rgb(158, 32, 167);
/* oklch */ color: oklch(50.9% 0.215 325.1);
Tailwind
colors: {
  custom: {
    50: '#bf6dc2',
    500: '#9e20a7',
    950: '#000000',
  },
}
SCSS
$custom: #9e20a7;
$custom-light: #bf6dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e20a7",
  "rgb": {
    "r": 158,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 296,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.50912,
    "c": 0.21506,
    "h": 325.1
  },
  "luminance": 0.11092
}

Semantic roles & 50–950 ramp

primary
#9E20A7
secondary
#64C55D
accent
#EB3D49
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9E20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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