#5B1584#5B1584

#5B1584 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.171 H 308.5°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#5B1584
RGBrgb(91, 21, 132)
HSLhsl(278, 73%, 30%)
HSVhsv(278, 84%, 52%)
CMYKcmyk(31.1%, 84.1%, 0%, 48.2%)
CIE-LABlab(25.03, 48.86, -47.00)
CIE-LCHlch(25.03, 67.80, 316.12°)
OKLaboklab(37.61% 0.1063 -0.1336)
OKLCHoklch(37.61% 0.171 308.5)
XYZxyz(8.7465, 4.4266, 22.2190)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1584 #3E8415
analogous
#241584 #5B1584 #841575
triadic
#5B1584 #845B15 #15845B
tetradic
#5B1584 #842415 #3E8415 #157584
square
#5B1584 #842415 #3E8415 #157584
split-complementary
#5B1584 #758415 #158424
monochromatic
#12041A #370D4F #5B1584 #7F1DB9 #A035DF

Accessibility & contrast

On white

11.14
#5B1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5B1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1584
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1584#FFFFFF#000000##FFFFFF
##5B15841.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#54334E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1584;
/* rgb */ color: rgb(91, 21, 132);
/* oklch */ color: oklch(37.6% 0.171 308.5);
Tailwind
colors: {
  custom: {
    50: '#8e5da9',
    500: '#5b1584',
    950: '#000000',
  },
}
SCSS
$custom: #5b1584;
$custom-light: #8e5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1584",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 277.838,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.37606,
    "c": 0.17073,
    "h": 308.5
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#5B1584
secondary
#6AB93C
accent
#EF397C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1584

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

Preview Lab → · Contrast checker → · Palette generator →

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