#5B208E#5B208E

#5B208E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.170 H 303.8°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#5B208E
RGBrgb(91, 32, 142)
HSLhsl(272, 63%, 34%)
HSVhsv(272, 77%, 56%)
CMYKcmyk(35.9%, 77.5%, 0%, 44.3%)
CIE-LABlab(27.33, 47.01, -49.51)
CIE-LCHlch(27.33, 68.27, 313.52°)
OKLaboklab(39.47% 0.0943 -0.1411)
OKLCHoklch(39.47% 0.17 303.8)
XYZxyz(9.7122, 5.2102, 26.0799)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B208E #538E20
analogous
#24208E #5B208E #8E208A
triadic
#5B208E #8E5B20 #208E5B
tetradic
#5B208E #8E2420 #538E20 #208A8E
square
#5B208E #8E2420 #538E20 #208A8E
split-complementary
#5B208E #8A8E20 #208E24
monochromatic
#1B092A #3B155C #5B208E #7B2BC0 #9951D8

Accessibility & contrast

On white

10.28
#5B208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5B208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B208E
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B208E#FFFFFF#000000##FFFFFF
##5B208E1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#513C56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b208e;
/* rgb */ color: rgb(91, 32, 142);
/* oklch */ color: oklch(39.5% 0.170 303.8);
Tailwind
colors: {
  custom: {
    50: '#8f62b0',
    500: '#5b208e',
    950: '#000000',
  },
}
SCSS
$custom: #5b208e;
$custom-light: #8f62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b208e",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 272.182,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39471,
    "c": 0.1697,
    "h": 303.8
  },
  "luminance": 0.0521
}

Semantic roles & 50–950 ramp

primary
#5B208E
secondary
#81BB4F
accent
#E6428E
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5B208E

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

Preview Lab → · Contrast checker → · Palette generator →

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