#5B1573#5B1573

#5B1573 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.155 H 315.5°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#5B1573
RGBrgb(91, 21, 115)
HSLhsl(285, 69%, 27%)
HSVhsv(285, 82%, 45%)
CMYKcmyk(20.9%, 81.7%, 0%, 54.9%)
CIE-LABlab(23.67, 45.15, -38.42)
CIE-LCHlch(23.67, 59.28, 319.61°)
OKLaboklab(36.22% 0.1103 -0.1084)
OKLCHoklch(36.22% 0.155 315.5)
XYZxyz(7.6766, 3.9986, 16.5838)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1573 #2D7315
analogous
#2C1573 #5B1573 #73155C
triadic
#5B1573 #735B15 #15735B
tetradic
#5B1573 #732C15 #2D7315 #155C73
square
#5B1573 #732C15 #2D7315 #155C73
split-complementary
#5B1573 #5C7315 #15732C
monochromatic
#14051A #320C3F #5B1573 #841EA7 #AC2AD8

Accessibility & contrast

On white

11.67
#5B1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5B1573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1573
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1573#FFFFFF#000000##FFFFFF
##5B15731.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#113A71
Tritanopia (blue-blind)
#592B44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1573;
/* rgb */ color: rgb(91, 21, 115);
/* oklch */ color: oklch(36.2% 0.155 315.5);
Tailwind
colors: {
  custom: {
    50: '#8d5c9c',
    500: '#5b1573',
    950: '#000000',
  },
}
SCSS
$custom: #5b1573;
$custom-light: #8d5c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1573",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 284.681,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3622,
    "c": 0.15464,
    "h": 315.5
  },
  "luminance": 0.03998
}

Semantic roles & 50–950 ramp

primary
#5B1573
secondary
#57A93B
accent
#EC3C69
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1573

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

Preview Lab → · Contrast checker → · Palette generator →

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