#5C20A6#5C20A6

#5C20A6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.195 H 297.2°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5C20A6
RGBrgb(92, 32, 166)
HSLhsl(267, 68%, 39%)
HSVhsv(267, 81%, 65%)
CMYKcmyk(44.6%, 80.7%, 0%, 34.9%)
CIE-LABlab(29.57, 53.10, -60.52)
CIE-LCHlch(29.57, 80.51, 311.27°)
OKLaboklab(41.71% 0.089 -0.1734)
OKLCHoklch(41.71% 0.195 297.2)
XYZxyz(11.8113, 6.0613, 36.6166)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C20A6 #6AA620
analogous
#2027A6 #5C20A6 #9F20A6
triadic
#5C20A6 #A65C20 #20A65C
tetradic
#5C20A6 #A62027 #6AA620 #20A69F
square
#5C20A6 #A62027 #6AA620 #20A69F
split-complementary
#5C20A6 #A69F20 #27A620
monochromatic
#230C3F #401673 #5C20A6 #792DD6 #9960E0

Accessibility & contrast

On white

9.49
#5C20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5C20A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C20A6
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C20A6#FFFFFF#000000##FFFFFF
##5C20A61.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#484664
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c20a6;
/* rgb */ color: rgb(92, 32, 166);
/* oklch */ color: oklch(41.7% 0.195 297.2);
Tailwind
colors: {
  custom: {
    50: '#9264c1',
    500: '#5c20a6',
    950: '#000000',
  },
}
SCSS
$custom: #5c20a6;
$custom-light: #9264c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c20a6",
  "rgb": {
    "r": 92,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 266.866,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41714,
    "c": 0.1949,
    "h": 297.2
  },
  "luminance": 0.06062
}

Semantic roles & 50–950 ramp

primary
#5C20A6
secondary
#96C55D
accent
#EB3D9D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C20A6

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

Preview Lab → · Contrast checker → · Palette generator →

#5C20A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva