#5B1571#5B1571

#5B1571 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.153 H 316.4°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#5B1571
RGBrgb(91, 21, 113)
HSLhsl(286, 69%, 26%)
HSVhsv(286, 81%, 44%)
CMYKcmyk(19.5%, 81.4%, 0%, 55.7%)
CIE-LABlab(23.52, 44.73, -37.38)
CIE-LCHlch(23.52, 58.29, 320.12°)
OKLaboklab(36.07% 0.1106 -0.1054)
OKLCHoklch(36.07% 0.153 316.4)
XYZxyz(7.5627, 3.9530, 15.9842)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1571 #2B7115
analogous
#2D1571 #5B1571 #711559
triadic
#5B1571 #715B15 #15715B
tetradic
#5B1571 #712D15 #2B7115 #155971
square
#5B1571 #712D15 #2B7115 #155971
split-complementary
#5B1571 #597115 #15712D
monochromatic
#15051A #310B3D #5B1571 #851FA5 #AE29D7

Accessibility & contrast

On white

11.73
#5B1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5B1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1571
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1571#FFFFFF#000000##FFFFFF
##5B15711.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#143A6F
Tritanopia (blue-blind)
#5A2A43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1571;
/* rgb */ color: rgb(91, 21, 113);
/* oklch */ color: oklch(36.1% 0.153 316.4);
Tailwind
colors: {
  custom: {
    50: '#8d5c9a',
    500: '#5b1571',
    950: '#000000',
  },
}
SCSS
$custom: #5b1571;
$custom-light: #8d5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1571",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 285.652,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36066,
    "c": 0.15277,
    "h": 316.4
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#5B1571
secondary
#55A73B
accent
#EB3C66
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1571

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

Preview Lab → · Contrast checker → · Palette generator →

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