#5B1579#5B1579

#5B1579 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.7% C 0.160 H 312.9°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#5B1579
RGBrgb(91, 21, 121)
HSLhsl(282, 70%, 28%)
HSVhsv(282, 83%, 47%)
CMYKcmyk(24.8%, 82.6%, 0%, 52.5%)
CIE-LABlab(24.13, 46.44, -41.50)
CIE-LCHlch(24.13, 62.28, 318.21°)
OKLaboklab(36.7% 0.109 -0.1175)
OKLCHoklch(36.7% 0.16 312.9)
XYZxyz(8.0331, 4.1412, 18.4616)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1579 #337915
analogous
#291579 #5B1579 #791565
triadic
#5B1579 #795B15 #15795B
tetradic
#5B1579 #792915 #337915 #156579
square
#5B1579 #792915 #337915 #156579
split-complementary
#5B1579 #657915 #157929
monochromatic
#14051A #340C45 #5B1579 #821EAD #A72EDB

Accessibility & contrast

On white

11.49
#5B1579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5B1579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1579
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1579#FFFFFF#000000##FFFFFF
##5B15791.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#043B77
Tritanopia (blue-blind)
#582E47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1579;
/* rgb */ color: rgb(91, 21, 121);
/* oklch */ color: oklch(36.7% 0.160 312.9);
Tailwind
colors: {
  custom: {
    50: '#8d5ca0',
    500: '#5b1579',
    950: '#000000',
  },
}
SCSS
$custom: #5b1579;
$custom-light: #8d5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1579",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 282,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36695,
    "c": 0.16028,
    "h": 312.9
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

primary
#5B1579
secondary
#5EAF3B
accent
#ED3B70
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040F
muted
#7E797E

Preview Lab

Preview with #5B1579

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

Preview Lab → · Contrast checker → · Palette generator →

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