#5B20A6#5B20A6

#5B20A6 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.6% C 0.195 H 296.7°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5B20A6
RGBrgb(91, 32, 166)
HSLhsl(266, 68%, 39%)
HSVhsv(266, 81%, 65%)
CMYKcmyk(45.2%, 80.7%, 0%, 34.9%)
CIE-LABlab(29.44, 52.96, -60.73)
CIE-LCHlch(29.44, 80.58, 311.09°)
OKLaboklab(41.6% 0.0875 -0.174)
OKLCHoklch(41.6% 0.195 296.7)
XYZxyz(11.7120, 6.0101, 36.6120)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B20A6 #6BA620
analogous
#2028A6 #5B20A6 #9E20A6
triadic
#5B20A6 #A65B20 #20A65B
tetradic
#5B20A6 #A62028 #6BA620 #20A69E
square
#5B20A6 #A62028 #6BA620 #20A69E
split-complementary
#5B20A6 #A69E20 #28A620
monochromatic
#230C3F #3F1673 #5B20A6 #772DD6 #9960E0

Accessibility & contrast

On white

9.54
#5B20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B20A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B20A6
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B20A6#FFFFFF#000000##FFFFFF
##5B20A61.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b20a6;
/* rgb */ color: rgb(91, 32, 166);
/* oklch */ color: oklch(41.6% 0.195 296.7);
Tailwind
colors: {
  custom: {
    50: '#9164c2',
    500: '#5b20a6',
    950: '#000000',
  },
}
SCSS
$custom: #5b20a6;
$custom-light: #9164c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b20a6",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 266.418,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41597,
    "c": 0.1948,
    "h": 296.7
  },
  "luminance": 0.0601
}

Semantic roles & 50–950 ramp

primary
#5B20A6
secondary
#97C55D
accent
#EB3D9E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5B20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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