#9C20C8#9C20C8

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

Color values

HEX#9C20C8
RGBrgb(156, 32, 200)
HSLhsl(284, 72%, 45%)
HSVhsv(284, 84%, 78%)
CMYKcmyk(22%, 84%, 0%, 21.6%)
CIE-LABlab(41.65, 70.39, -60.57)
CIE-LCHlch(41.65, 92.86, 319.29°)
OKLaboklab(52.9% 0.1686 -0.1713)
OKLCHoklch(52.9% 0.24 314.5)
XYZxyz(24.6504, 12.2720, 55.7026)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C20C8 #4CC820
analogous
#4820C8 #9C20C8 #C820A0
triadic
#9C20C8 #C89C20 #20C89C
tetradic
#9C20C8 #C84820 #4CC820 #20A0C8
square
#9C20C8 #C84820 #4CC820 #20A0C8
split-complementary
#9C20C8 #A0C820 #20C848
monochromatic
#4A0F5E #731893 #9C20C8 #B844E1 #CC79EA

Accessibility & contrast

On white

6.08
#9C20C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9C20C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C20C8
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C20C8#FFFFFF#000000##FFFFFF
##9C20C81.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#0965C5
Tritanopia (blue-blind)
#984C78
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9c20c8;
/* rgb */ color: rgb(156, 32, 200);
/* oklch */ color: oklch(52.9% 0.240 314.5);
Tailwind
colors: {
  custom: {
    50: '#be6eda',
    500: '#9c20c8',
    950: '#000000',
  },
}
SCSS
$custom: #9c20c8;
$custom-light: #be6eda;
$custom-dark: #000000;
JSON
{
  "hex": "#9c20c8",
  "rgb": {
    "r": 156,
    "g": 32,
    "b": 200
  },
  "hsl": {
    "h": 284.286,
    "s": 72.414,
    "l": 45.49
  },
  "oklch": {
    "l": 0.52895,
    "c": 0.24041,
    "h": 314.5
  },
  "luminance": 0.12271
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C20C8

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

Preview Lab → · Contrast checker → · Palette generator →

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