#9E20A8#9E20A8

#9E20A8 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 51.0% C 0.216 H 324.7°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#9E20A8
RGBrgb(158, 32, 168)
HSLhsl(296, 68%, 39%)
HSVhsv(296, 81%, 66%)
CMYKcmyk(6%, 81%, 0%, 34.1%)
CIE-LABlab(39.80, 65.00, -44.66)
CIE-LCHlch(39.80, 78.87, 325.51°)
OKLaboklab(50.98% 0.1762 -0.1246)
OKLCHoklch(50.98% 0.216 324.7)
XYZxyz(21.6844, 11.1307, 38.0445)
Luminance0.1113 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E20A8 #2AA820
analogous
#5A20A8 #9E20A8 #A8206E
triadic
#9E20A8 #A89E20 #20A89E
tetradic
#9E20A8 #A85A20 #2AA820 #206EA8
square
#9E20A8 #A85A20 #2AA820 #206EA8
split-complementary
#9E20A8 #6EA820 #20A85A
monochromatic
#3D0C41 #6E1675 #9E20A8 #CB2ED7 #D861E1

Accessibility & contrast

On white

6.51
#9E20A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#9E20A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E20A8
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E20A8#FFFFFF#000000##FFFFFF
##9E20A81.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AC
Deuteranopia (green-blind)
#3E63A5
Tritanopia (blue-blind)
#A13B65
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9e20a8;
/* rgb */ color: rgb(158, 32, 168);
/* oklch */ color: oklch(51.0% 0.216 324.7);
Tailwind
colors: {
  custom: {
    50: '#bf6dc2',
    500: '#9e20a8',
    950: '#000000',
  },
}
SCSS
$custom: #9e20a8;
$custom-light: #bf6dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e20a8",
  "rgb": {
    "r": 158,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 295.588,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50976,
    "c": 0.21582,
    "h": 324.7
  },
  "luminance": 0.11129
}

Semantic roles & 50–950 ramp

primary
#9E20A8
secondary
#66C65E
accent
#EB3D4A
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9E20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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