#5B1576#5B1576

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

Color values

HEX#5B1576
RGBrgb(91, 21, 118)
HSLhsl(283, 70%, 27%)
HSVhsv(283, 82%, 46%)
CMYKcmyk(22.9%, 82.2%, 0%, 53.7%)
CIE-LABlab(23.90, 45.79, -39.97)
CIE-LCHlch(23.90, 60.78, 318.88°)
OKLaboklab(36.46% 0.1097 -0.113)
OKLCHoklch(36.46% 0.157 314.2)
XYZxyz(7.8520, 4.0688, 17.5078)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1576 #307615
analogous
#2B1576 #5B1576 #761561
triadic
#5B1576 #765B15 #15765B
tetradic
#5B1576 #762B15 #307615 #156176
square
#5B1576 #762B15 #307615 #156176
split-complementary
#5B1576 #617615 #15762B
monochromatic
#14051A #330C42 #5B1576 #831EAA #A92CD9

Accessibility & contrast

On white

11.58
#5B1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5B1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1576
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1576#FFFFFF#000000##FFFFFF
##5B15761.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#0C3A74
Tritanopia (blue-blind)
#582C46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1576;
/* rgb */ color: rgb(91, 21, 118);
/* oklch */ color: oklch(36.5% 0.157 314.2);
Tailwind
colors: {
  custom: {
    50: '#8d5c9e',
    500: '#5b1576',
    950: '#000000',
  },
}
SCSS
$custom: #5b1576;
$custom-light: #8d5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1576",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 283.299,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36455,
    "c": 0.15746,
    "h": 314.2
  },
  "luminance": 0.04068
}

Semantic roles & 50–950 ramp

primary
#5B1576
secondary
#5AAC3B
accent
#ED3B6D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1576

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

Preview Lab → · Contrast checker → · Palette generator →

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