#5B208A#5B208A

#5B208A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.166 H 305.1°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5B208A
RGBrgb(91, 32, 138)
HSLhsl(273, 62%, 33%)
HSVhsv(273, 77%, 54%)
CMYKcmyk(34.1%, 76.8%, 0%, 45.9%)
CIE-LABlab(27.00, 46.04, -47.56)
CIE-LCHlch(27.00, 66.19, 314.07°)
OKLaboklab(39.14% 0.0952 -0.1354)
OKLCHoklch(39.14% 0.166 305.1)
XYZxyz(9.4173, 5.0922, 24.5266)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B208A #4F8A20
analogous
#26208A #5B208A #8A2084
triadic
#5B208A #8A5B20 #208A5B
tetradic
#5B208A #8A2620 #4F8A20 #20848A
square
#5B208A #8A2620 #4F8A20 #20848A
split-complementary
#5B208A #848A20 #208A26
monochromatic
#190927 #3A1458 #5B208A #7C2CBC #9A4ED6

Accessibility & contrast

On white

10.40
#5B208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B208A
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B208A#FFFFFF#000000##FFFFFF
##5B208A1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#523A54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b208a;
/* rgb */ color: rgb(91, 32, 138);
/* oklch */ color: oklch(39.1% 0.166 305.1);
Tailwind
colors: {
  custom: {
    50: '#8e62ad',
    500: '#5b208a',
    950: '#000000',
  },
}
SCSS
$custom: #5b208a;
$custom-light: #8e62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b208a",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 273.396,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39136,
    "c": 0.1655,
    "h": 305.1
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

primary
#5B208A
secondary
#7DB94D
accent
#E5428B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B208A

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

Preview Lab → · Contrast checker → · Palette generator →

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