#5B208B#5B208B

#5B208B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.167 H 304.8°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#5B208B
RGBrgb(91, 32, 139)
HSLhsl(273, 63%, 34%)
HSVhsv(273, 77%, 55%)
CMYKcmyk(34.5%, 77%, 0%, 45.5%)
CIE-LABlab(27.08, 46.28, -48.05)
CIE-LCHlch(27.08, 66.71, 313.93°)
OKLaboklab(39.22% 0.095 -0.1368)
OKLCHoklch(39.22% 0.167 304.8)
XYZxyz(9.4900, 5.1213, 24.9096)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B208B #508B20
analogous
#25208B #5B208B #8B2085
triadic
#5B208B #8B5B20 #208B5B
tetradic
#5B208B #8B2520 #508B20 #20858B
square
#5B208B #8B2520 #508B20 #20858B
split-complementary
#5B208B #858B20 #208B25
monochromatic
#1A0928 #3A1559 #5B208B #7C2BBD #9A4FD6

Accessibility & contrast

On white

10.37
#5B208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5B208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B208B
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B208B#FFFFFF#000000##FFFFFF
##5B208B1.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#523B54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b208b;
/* rgb */ color: rgb(91, 32, 139);
/* oklch */ color: oklch(39.2% 0.167 304.8);
Tailwind
colors: {
  custom: {
    50: '#8e62ae',
    500: '#5b208b',
    950: '#000000',
  },
}
SCSS
$custom: #5b208b;
$custom-light: #8e62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b208b",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 273.084,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39219,
    "c": 0.16655,
    "h": 304.8
  },
  "luminance": 0.05121
}

Semantic roles & 50–950 ramp

primary
#5B208B
secondary
#7EBA4D
accent
#E6428B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B208B

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

Preview Lab → · Contrast checker → · Palette generator →

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