#5B20BC#5B20BC

#5B20BC is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.7% C 0.218 H 291.6°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5B20BC
RGBrgb(91, 32, 188)
HSLhsl(263, 71%, 43%)
HSVhsv(263, 83%, 74%)
CMYKcmyk(51.6%, 83%, 0%, 26.3%)
CIE-LABlab(31.55, 58.51, -70.41)
CIE-LCHlch(31.55, 91.54, 309.73°)
OKLaboklab(43.69% 0.08 -0.2024)
OKLCHoklch(43.69% 0.218 291.6)
XYZxyz(13.9054, 6.8874, 48.1639)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B20BC #81BC20
analogous
#2033BC #5B20BC #A920BC
triadic
#5B20BC #BC5B20 #20BC5B
tetradic
#5B20BC #BC2033 #81BC20 #20BCA9
square
#5B20BC #BC2033 #81BC20 #20BCA9
split-complementary
#5B20BC #BCA920 #33BC20
monochromatic
#280E53 #421788 #5B20BC #793BDE #9D70E7

Accessibility & contrast

On white

8.83
#5B20BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5B20BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B20BC
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B20BC#FFFFFF#000000##FFFFFF
##5B20BC1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC0
Deuteranopia (green-blind)
#0047B9
Tritanopia (blue-blind)
#395070
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b20bc;
/* rgb */ color: rgb(91, 32, 188);
/* oklch */ color: oklch(43.7% 0.218 291.6);
Tailwind
colors: {
  custom: {
    50: '#9465d1',
    500: '#5b20bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b20bc;
$custom-light: #9465d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b20bc",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 188
  },
  "hsl": {
    "h": 262.692,
    "s": 70.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43694,
    "c": 0.21758,
    "h": 291.6
  },
  "luminance": 0.06888
}

Semantic roles & 50–950 ramp

primary
#5B20BC
secondary
#A8CD6B
accent
#EE3AAA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5B20BC

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

Preview Lab → · Contrast checker → · Palette generator →

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