#5B208C#5B208C

#5B208C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.168 H 304.4°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#5B208C
RGBrgb(91, 32, 140)
HSLhsl(273, 63%, 34%)
HSVhsv(273, 77%, 55%)
CMYKcmyk(35%, 77.1%, 0%, 45.1%)
CIE-LABlab(27.16, 46.52, -48.54)
CIE-LCHlch(27.16, 67.23, 313.79°)
OKLaboklab(39.3% 0.0948 -0.1382)
OKLCHoklch(39.3% 0.168 304.4)
XYZxyz(9.5634, 5.1507, 25.2962)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B208C #518C20
analogous
#25208C #5B208C #8C2087
triadic
#5B208C #8C5B20 #208C5B
tetradic
#5B208C #8C2520 #518C20 #20878C
square
#5B208C #8C2520 #518C20 #20878C
split-complementary
#5B208C #878C20 #208C25
monochromatic
#1A0928 #3B155A #5B208C #7B2BBE #9950D7

Accessibility & contrast

On white

10.34
#5B208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5B208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B208C
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B208C#FFFFFF#000000##FFFFFF
##5B208C1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#523B55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b208c;
/* rgb */ color: rgb(91, 32, 140);
/* oklch */ color: oklch(39.3% 0.168 304.4);
Tailwind
colors: {
  custom: {
    50: '#8e62ae',
    500: '#5b208c',
    950: '#000000',
  },
}
SCSS
$custom: #5b208c;
$custom-light: #8e62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b208c",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 272.778,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39302,
    "c": 0.1676,
    "h": 304.4
  },
  "luminance": 0.05151
}

Semantic roles & 50–950 ramp

primary
#5B208C
secondary
#7FBA4E
accent
#E6428C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B208C

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

Preview Lab → · Contrast checker → · Palette generator →

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