#5C20A0#5C20A0

#5C20A0 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.2% C 0.189 H 298.8°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5C20A0
RGBrgb(92, 32, 160)
HSLhsl(268, 67%, 38%)
HSVhsv(268, 80%, 63%)
CMYKcmyk(42.5%, 80%, 0%, 37.3%)
CIE-LABlab(29.02, 51.61, -57.78)
CIE-LCHlch(29.02, 77.47, 311.77°)
OKLaboklab(41.17% 0.0909 -0.1653)
OKLCHoklch(41.17% 0.189 298.8)
XYZxyz(11.2737, 5.8462, 33.7854)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C20A0 #64A020
analogous
#2024A0 #5C20A0 #9C20A0
triadic
#5C20A0 #A05C20 #20A05C
tetradic
#5C20A0 #A02024 #64A020 #20A09C
square
#5C20A0 #A02024 #64A020 #20A09C
split-complementary
#5C20A0 #A09C20 #24A020
monochromatic
#210C3A #3F166D #5C20A0 #792AD3 #995CDE

Accessibility & contrast

On white

9.68
#5C20A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5C20A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C20A0
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C20A0#FFFFFF#000000##FFFFFF
##5C20A01.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#4B4360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c20a0;
/* rgb */ color: rgb(92, 32, 160);
/* oklch */ color: oklch(41.2% 0.189 298.8);
Tailwind
colors: {
  custom: {
    50: '#9163bd',
    500: '#5c20a0',
    950: '#000000',
  },
}
SCSS
$custom: #5c20a0;
$custom-light: #9163bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c20a0",
  "rgb": {
    "r": 92,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 268.125,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41168,
    "c": 0.18868,
    "h": 298.8
  },
  "luminance": 0.05846
}

Semantic roles & 50–950 ramp

primary
#5C20A0
secondary
#91C359
accent
#EA3E99
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C20A0

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

Preview Lab → · Contrast checker → · Palette generator →

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