#5B20A7#5B20A7

#5B20A7 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.7% C 0.196 H 296.4°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5B20A7
RGBrgb(91, 32, 167)
HSLhsl(266, 68%, 39%)
HSVhsv(266, 81%, 65%)
CMYKcmyk(45.5%, 80.8%, 0%, 34.5%)
CIE-LABlab(29.53, 53.21, -61.19)
CIE-LCHlch(29.53, 81.09, 311.01°)
OKLaboklab(41.69% 0.0872 -0.1754)
OKLCHoklch(41.69% 0.196 296.4)
XYZxyz(11.8041, 6.0469, 37.0970)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B20A7 #6CA720
analogous
#2029A7 #5B20A7 #9F20A7
triadic
#5B20A7 #A75B20 #20A75B
tetradic
#5B20A7 #A72029 #6CA720 #20A79F
square
#5B20A7 #A72029 #6CA720 #20A79F
split-complementary
#5B20A7 #A79F20 #29A720
monochromatic
#230C40 #3F1674 #5B20A7 #772DD7 #9961E1

Accessibility & contrast

On white

9.50
#5B20A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B20A7
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B20A7#FFFFFF#000000##FFFFFF
##5B20A71.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#464764
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b20a7;
/* rgb */ color: rgb(91, 32, 167);
/* oklch */ color: oklch(41.7% 0.196 296.4);
Tailwind
colors: {
  custom: {
    50: '#9164c2',
    500: '#5b20a7',
    950: '#000000',
  },
}
SCSS
$custom: #5b20a7;
$custom-light: #9164c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b20a7",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 266.222,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41689,
    "c": 0.19584,
    "h": 296.4
  },
  "luminance": 0.06047
}

Semantic roles & 50–950 ramp

primary
#5B20A7
secondary
#98C55D
accent
#EB3D9F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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