#5B20A8#5B20A8

#5B20A8 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.197 H 296.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5B20A8
RGBrgb(91, 32, 168)
HSLhsl(266, 68%, 39%)
HSVhsv(266, 81%, 66%)
CMYKcmyk(45.8%, 81%, 0%, 34.1%)
CIE-LABlab(29.62, 53.46, -61.64)
CIE-LCHlch(29.62, 81.59, 310.94°)
OKLaboklab(41.78% 0.0869 -0.1767)
OKLCHoklch(41.78% 0.197 296.2)
XYZxyz(11.8969, 6.0840, 37.5857)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B20A8 #6DA820
analogous
#2029A8 #5B20A8 #9F20A8
triadic
#5B20A8 #A85B20 #20A85B
tetradic
#5B20A8 #A82029 #6DA820 #20A89F
square
#5B20A8 #A82029 #6DA820 #20A89F
split-complementary
#5B20A8 #A89F20 #29A820
monochromatic
#230C41 #3F1675 #5B20A8 #772ED7 #9961E1

Accessibility & contrast

On white

9.47
#5B20A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B20A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B20A8
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B20A8#FFFFFF#000000##FFFFFF
##5B20A81.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#454765
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b20a8;
/* rgb */ color: rgb(91, 32, 168);
/* oklch */ color: oklch(41.8% 0.197 296.2);
Tailwind
colors: {
  custom: {
    50: '#9164c3',
    500: '#5b20a8',
    950: '#000000',
  },
}
SCSS
$custom: #5b20a8;
$custom-light: #9164c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b20a8",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 266.029,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41782,
    "c": 0.19688,
    "h": 296.2
  },
  "luminance": 0.06084
}

Semantic roles & 50–950 ramp

primary
#5B20A8
secondary
#99C65E
accent
#EB3D9F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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