#5B206D#5B206D

#5B206D is a dark, vivid purple. Relative luminance 0.044; OKLCH L 36.9% C 0.135 H 317.3°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#5B206D
RGBrgb(91, 32, 109)
HSLhsl(286, 55%, 28%)
HSVhsv(286, 71%, 43%)
CMYKcmyk(16.5%, 70.6%, 0%, 57.3%)
CIE-LABlab(24.83, 39.32, -32.68)
CIE-LCHlch(24.83, 51.13, 320.27°)
OKLaboklab(36.91% 0.0994 -0.0917)
OKLCHoklch(36.91% 0.135 317.3)
XYZxyz(7.5908, 4.3616, 14.9071)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B206D #326D20
analogous
#34206D #5B206D #6D2058
triadic
#5B206D #6D5B20 #206D5B
tetradic
#5B206D #6D3420 #326D20 #20586D
square
#5B206D #6D3420 #326D20 #20586D
split-complementary
#5B206D #586D20 #206D34
monochromatic
#140718 #34123E #5B206D #822E9C #A840C7

Accessibility & contrast

On white

11.22
#5B206D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B206D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B206D
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B206D#FFFFFF#000000##FFFFFF
##5B206D1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376F
Deuteranopia (green-blind)
#223D6B
Tritanopia (blue-blind)
#5A2E43
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b206d;
/* rgb */ color: rgb(91, 32, 109);
/* oklch */ color: oklch(36.9% 0.135 317.3);
Tailwind
colors: {
  custom: {
    50: '#8c6197',
    500: '#5b206d',
    950: '#000000',
  },
}
SCSS
$custom: #5b206d;
$custom-light: #8c6197;
$custom-dark: #000000;
JSON
{
  "hex": "#5b206d",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 109
  },
  "hsl": {
    "h": 285.974,
    "s": 54.61,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36913,
    "c": 0.13519,
    "h": 317.3
  },
  "luminance": 0.04361
}

Semantic roles & 50–950 ramp

primary
#5B206D
secondary
#5DA148
accent
#DE4A6C
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5B206D

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

Preview Lab → · Contrast checker → · Palette generator →

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