#5B206E#5B206E

#5B206E is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.0% C 0.136 H 316.8°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#5B206E
RGBrgb(91, 32, 110)
HSLhsl(285, 55%, 28%)
HSVhsv(285, 71%, 43%)
CMYKcmyk(17.3%, 70.9%, 0%, 56.9%)
CIE-LABlab(24.90, 39.54, -33.22)
CIE-LCHlch(24.90, 51.64, 319.97°)
OKLaboklab(36.98% 0.0993 -0.0932)
OKLCHoklch(36.98% 0.136 316.8)
XYZxyz(7.6449, 4.3833, 15.1922)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B206E #336E20
analogous
#34206E #5B206E #6E205A
triadic
#5B206E #6E5B20 #206E5B
tetradic
#5B206E #6E3420 #336E20 #205A6E
square
#5B206E #6E3420 #336E20 #205A6E
split-complementary
#5B206E #5A6E20 #206E34
monochromatic
#140718 #34123F #5B206E #822E9D #A741C8

Accessibility & contrast

On white

11.19
#5B206E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5B206E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B206E
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B206E#FFFFFF#000000##FFFFFF
##5B206E1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003770
Deuteranopia (green-blind)
#213D6C
Tritanopia (blue-blind)
#5A2F44
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b206e;
/* rgb */ color: rgb(91, 32, 110);
/* oklch */ color: oklch(37.0% 0.136 316.8);
Tailwind
colors: {
  custom: {
    50: '#8c6198',
    500: '#5b206e',
    950: '#000000',
  },
}
SCSS
$custom: #5b206e;
$custom-light: #8c6198;
$custom-dark: #000000;
JSON
{
  "hex": "#5b206e",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 110
  },
  "hsl": {
    "h": 285.385,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36983,
    "c": 0.13622,
    "h": 316.8
  },
  "luminance": 0.04383
}

Semantic roles & 50–950 ramp

primary
#5B206E
secondary
#5EA248
accent
#DE4A6E
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5B206E

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

Preview Lab → · Contrast checker → · Palette generator →

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