#5B1578#5B1578

#5B1578 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.159 H 313.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#5B1578
RGBrgb(91, 21, 120)
HSLhsl(282, 70%, 28%)
HSVhsv(282, 83%, 47%)
CMYKcmyk(24.2%, 82.5%, 0%, 52.9%)
CIE-LABlab(24.05, 46.22, -40.99)
CIE-LCHlch(24.05, 61.78, 318.43°)
OKLaboklab(36.61% 0.1093 -0.116)
OKLCHoklch(36.61% 0.159 313.3)
XYZxyz(7.9721, 4.1168, 18.1403)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1578 #327815
analogous
#291578 #5B1578 #781564
triadic
#5B1578 #785B15 #15785B
tetradic
#5B1578 #782915 #327815 #156478
square
#5B1578 #782915 #327815 #156478
split-complementary
#5B1578 #647815 #157829
monochromatic
#14051A #340C44 #5B1578 #821EAC #A82DDA

Accessibility & contrast

On white

11.52
#5B1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1578
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1578#FFFFFF#000000##FFFFFF
##5B15781.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#073B76
Tritanopia (blue-blind)
#582D47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1578;
/* rgb */ color: rgb(91, 21, 120);
/* oklch */ color: oklch(36.6% 0.159 313.3);
Tailwind
colors: {
  custom: {
    50: '#8d5ca0',
    500: '#5b1578',
    950: '#000000',
  },
}
SCSS
$custom: #5b1578;
$custom-light: #8d5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1578",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 282.424,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36615,
    "c": 0.15934,
    "h": 313.3
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#5B1578
secondary
#5DAE3B
accent
#ED3B6F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040F
muted
#7E797E

Preview Lab

Preview with #5B1578

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

Preview Lab → · Contrast checker → · Palette generator →

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