#5B1586#5B1586

#5B1586 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.173 H 307.7°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#5B1586
RGBrgb(91, 21, 134)
HSLhsl(277, 73%, 30%)
HSVhsv(277, 84%, 53%)
CMYKcmyk(32.1%, 84.3%, 0%, 47.5%)
CIE-LABlab(25.20, 49.31, -47.98)
CIE-LCHlch(25.20, 68.80, 315.79°)
OKLaboklab(37.78% 0.1057 -0.1365)
OKLCHoklch(37.78% 0.173 307.7)
XYZxyz(8.8847, 4.4818, 22.9467)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1586 #408615
analogous
#221586 #5B1586 #861578
triadic
#5B1586 #865B15 #15865B
tetradic
#5B1586 #862215 #408615 #157886
square
#5B1586 #862215 #408615 #157886
split-complementary
#5B1586 #788615 #158622
monochromatic
#13041C #370D51 #5B1586 #7F1DBB #9F36DF

Accessibility & contrast

On white

11.07
#5B1586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5B1586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1586
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1586#FFFFFF#000000##FFFFFF
##5B15861.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#54344F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1586;
/* rgb */ color: rgb(91, 21, 134);
/* oklch */ color: oklch(37.8% 0.173 307.7);
Tailwind
colors: {
  custom: {
    50: '#8e5daa',
    500: '#5b1586',
    950: '#000000',
  },
}
SCSS
$custom: #5b1586;
$custom-light: #8e5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1586",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 134
  },
  "hsl": {
    "h": 277.168,
    "s": 72.903,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37778,
    "c": 0.17264,
    "h": 307.7
  },
  "luminance": 0.04482
}

Semantic roles & 50–950 ramp

primary
#5B1586
secondary
#6CBA3C
accent
#F0387E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1586

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

Preview Lab → · Contrast checker → · Palette generator →

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