#9B20C8#9B20C8

#9B20C8 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.8% C 0.240 H 314.2°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9B20C8
RGBrgb(155, 32, 200)
HSLhsl(284, 72%, 45%)
HSVhsv(284, 84%, 78%)
CMYKcmyk(22.5%, 84%, 0%, 21.6%)
CIE-LABlab(41.49, 70.23, -60.83)
CIE-LCHlch(41.49, 92.91, 319.10°)
OKLaboklab(52.76% 0.1674 -0.1721)
OKLCHoklch(52.76% 0.24 314.2)
XYZxyz(24.4576, 12.1726, 55.6936)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B20C8 #4DC820
analogous
#4720C8 #9B20C8 #C820A1
triadic
#9B20C8 #C89B20 #20C89B
tetradic
#9B20C8 #C84720 #4DC820 #20A1C8
square
#9B20C8 #C84720 #4DC820 #20A1C8
split-complementary
#9B20C8 #A1C820 #20C847
monochromatic
#490F5E #721893 #9B20C8 #B744E1 #CB79EA

Accessibility & contrast

On white

6.11
#9B20C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9B20C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B20C8
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B20C8#FFFFFF#000000##FFFFFF
##9B20C81.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b20c8;
/* rgb */ color: rgb(155, 32, 200);
/* oklch */ color: oklch(52.8% 0.240 314.2);
Tailwind
colors: {
  custom: {
    50: '#be6eda',
    500: '#9b20c8',
    950: '#000000',
  },
}
SCSS
$custom: #9b20c8;
$custom-light: #be6eda;
$custom-dark: #000000;
JSON
{
  "hex": "#9b20c8",
  "rgb": {
    "r": 155,
    "g": 32,
    "b": 200
  },
  "hsl": {
    "h": 283.929,
    "s": 72.414,
    "l": 45.49
  },
  "oklch": {
    "l": 0.52755,
    "c": 0.2401,
    "h": 314.2
  },
  "luminance": 0.12172
}

Semantic roles & 50–950 ramp

primary
#9B20C8
secondary
#8CD173
accent
#EF396A
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9B20C8

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

Preview Lab → · Contrast checker → · Palette generator →

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