#9D20C8#9D20C8

#9D20C8 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 53.0% C 0.241 H 314.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#9D20C8
RGBrgb(157, 32, 200)
HSLhsl(285, 72%, 45%)
HSVhsv(285, 84%, 78%)
CMYKcmyk(21.5%, 84%, 0%, 21.6%)
CIE-LABlab(41.80, 70.55, -60.31)
CIE-LCHlch(41.80, 92.81, 319.48°)
OKLaboklab(53.04% 0.1699 -0.1705)
OKLCHoklch(53.04% 0.241 314.9)
XYZxyz(24.8447, 12.3722, 55.7117)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D20C8 #4BC820
analogous
#4920C8 #9D20C8 #C8209F
triadic
#9D20C8 #C89D20 #20C89D
tetradic
#9D20C8 #C84920 #4BC820 #209FC8
square
#9D20C8 #C84920 #4BC820 #209FC8
split-complementary
#9D20C8 #9FC820 #20C849
monochromatic
#4A0F5E #741893 #9D20C8 #B944E1 #CD79EA

Accessibility & contrast

On white

6.04
#9D20C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9D20C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D20C8
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D20C8#FFFFFF#000000##FFFFFF
##9D20C81.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#0F66C5
Tritanopia (blue-blind)
#994C78
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d20c8;
/* rgb */ color: rgb(157, 32, 200);
/* oklch */ color: oklch(53.0% 0.241 314.9);
Tailwind
colors: {
  custom: {
    50: '#bf6eda',
    500: '#9d20c8',
    950: '#000000',
  },
}
SCSS
$custom: #9d20c8;
$custom-light: #bf6eda;
$custom-dark: #000000;
JSON
{
  "hex": "#9d20c8",
  "rgb": {
    "r": 157,
    "g": 32,
    "b": 200
  },
  "hsl": {
    "h": 284.643,
    "s": 72.414,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53035,
    "c": 0.24072,
    "h": 314.9
  },
  "luminance": 0.12371
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D20C8

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

Preview Lab → · Contrast checker → · Palette generator →

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