#5B208D#5B208D

#5B208D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.169 H 304.1°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#5B208D
RGBrgb(91, 32, 141)
HSLhsl(272, 63%, 34%)
HSVhsv(272, 77%, 55%)
CMYKcmyk(35.5%, 77.3%, 0%, 44.7%)
CIE-LABlab(27.24, 46.77, -49.02)
CIE-LCHlch(27.24, 67.75, 313.65°)
OKLaboklab(39.39% 0.0945 -0.1397)
OKLCHoklch(39.39% 0.169 304.1)
XYZxyz(9.6375, 5.1803, 25.6863)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B208D #528D20
analogous
#25208D #5B208D #8D2089
triadic
#5B208D #8D5B20 #208D5B
tetradic
#5B208D #8D2520 #528D20 #20898D
square
#5B208D #8D2520 #528D20 #20898D
split-complementary
#5B208D #898D20 #208D25
monochromatic
#1B0929 #3B155B #5B208D #7B2BBF #9950D7

Accessibility & contrast

On white

10.31
#5B208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B208D
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B208D#FFFFFF#000000##FFFFFF
##5B208D1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#513C55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b208d;
/* rgb */ color: rgb(91, 32, 141);
/* oklch */ color: oklch(39.4% 0.169 304.1);
Tailwind
colors: {
  custom: {
    50: '#8e62af',
    500: '#5b208d',
    950: '#000000',
  },
}
SCSS
$custom: #5b208d;
$custom-light: #8e62af;
$custom-dark: #000000;
JSON
{
  "hex": "#5b208d",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 272.477,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39386,
    "c": 0.16865,
    "h": 304.1
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#5B208D
secondary
#80BA4E
accent
#E6428D
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B208D

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

Preview Lab → · Contrast checker → · Palette generator →

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