#5B208F#5B208F

#5B208F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.171 H 303.4°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5B208F
RGBrgb(91, 32, 143)
HSLhsl(272, 63%, 34%)
HSVhsv(272, 78%, 56%)
CMYKcmyk(36.4%, 77.6%, 0%, 43.9%)
CIE-LABlab(27.41, 47.25, -49.99)
CIE-LCHlch(27.41, 68.79, 313.39°)
OKLaboklab(39.56% 0.0941 -0.1425)
OKLCHoklch(39.56% 0.171 303.4)
XYZxyz(9.7877, 5.2403, 26.4771)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B208F #548F20
analogous
#24208F #5B208F #8F208C
triadic
#5B208F #8F5B20 #208F5B
tetradic
#5B208F #8F2420 #548F20 #208C8F
square
#5B208F #8F2420 #548F20 #208C8F
split-complementary
#5B208F #8C8F20 #208F24
monochromatic
#1B0A2B #3B155D #5B208F #7B2BC1 #9951D8

Accessibility & contrast

On white

10.25
#5B208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5B208F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B208F
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B208F#FFFFFF#000000##FFFFFF
##5B208F1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#503C56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b208f;
/* rgb */ color: rgb(91, 32, 143);
/* oklch */ color: oklch(39.6% 0.171 303.4);
Tailwind
colors: {
  custom: {
    50: '#8f62b1',
    500: '#5b208f',
    950: '#000000',
  },
}
SCSS
$custom: #5b208f;
$custom-light: #8f62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b208f",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 271.892,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39555,
    "c": 0.17075,
    "h": 303.4
  },
  "luminance": 0.0524
}

Semantic roles & 50–950 ramp

primary
#5B208F
secondary
#82BB4F
accent
#E6418F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5B208F

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

Preview Lab → · Contrast checker → · Palette generator →

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