#5B1577#5B1577

#5B1577 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.158 H 313.7°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#5B1577
RGBrgb(91, 21, 119)
HSLhsl(283, 70%, 27%)
HSVhsv(283, 82%, 47%)
CMYKcmyk(23.5%, 82.4%, 0%, 53.3%)
CIE-LABlab(23.98, 46.01, -40.48)
CIE-LCHlch(23.98, 61.28, 318.66°)
OKLaboklab(36.54% 0.1095 -0.1145)
OKLCHoklch(36.54% 0.158 313.7)
XYZxyz(7.9117, 4.0927, 17.8224)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1577 #317715
analogous
#2A1577 #5B1577 #771562
triadic
#5B1577 #775B15 #15775B
tetradic
#5B1577 #772A15 #317715 #156277
square
#5B1577 #772A15 #317715 #156277
split-complementary
#5B1577 #627715 #15772A
monochromatic
#14051A #330C43 #5B1577 #831EAB #A82DDA

Accessibility & contrast

On white

11.55
#5B1577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5B1577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1577
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1577#FFFFFF#000000##FFFFFF
##5B15771.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#093B75
Tritanopia (blue-blind)
#582D46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1577;
/* rgb */ color: rgb(91, 21, 119);
/* oklch */ color: oklch(36.5% 0.158 313.7);
Tailwind
colors: {
  custom: {
    50: '#8d5c9f',
    500: '#5b1577',
    950: '#000000',
  },
}
SCSS
$custom: #5b1577;
$custom-light: #8d5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1577",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 282.857,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36535,
    "c": 0.1584,
    "h": 313.7
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

primary
#5B1577
secondary
#5CAD3B
accent
#ED3B6E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1577

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

Preview Lab → · Contrast checker → · Palette generator →

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