#5B1568#5B1568

#5B1568 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.144 H 320.8°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#5B1568
RGBrgb(91, 21, 104)
HSLhsl(291, 66%, 25%)
HSVhsv(291, 80%, 41%)
CMYKcmyk(12.5%, 79.8%, 0%, 59.2%)
CIE-LABlab(22.86, 42.88, -32.59)
CIE-LCHlch(22.86, 53.86, 322.76°)
OKLaboklab(35.4% 0.1119 -0.0913)
OKLCHoklch(35.4% 0.144 320.8)
XYZxyz(7.0809, 3.7603, 13.4469)
Luminance0.0376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1568 #226815
analogous
#311568 #5B1568 #68154C
triadic
#5B1568 #685B15 #15685B
tetradic
#5B1568 #683115 #226815 #154C68
square
#5B1568 #683115 #226815 #154C68
split-complementary
#5B1568 #4C6815 #156831
monochromatic
#160519 #2E0B35 #5B1568 #881F9B #B42ACE

Accessibility & contrast

On white

11.99
#5B1568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5B1568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1568
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1568#FFFFFF#000000##FFFFFF
##5B15681.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#1E3966
Tritanopia (blue-blind)
#5C263E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1568;
/* rgb */ color: rgb(91, 21, 104);
/* oklch */ color: oklch(35.4% 0.144 320.8);
Tailwind
colors: {
  custom: {
    50: '#8d5b94',
    500: '#5b1568',
    950: '#000000',
  },
}
SCSS
$custom: #5b1568;
$custom-light: #8d5b94;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1568",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 290.602,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.35397,
    "c": 0.14444,
    "h": 320.8
  },
  "luminance": 0.0376
}

Semantic roles & 50–950 ramp

primary
#5B1568
secondary
#4A9F3A
accent
#E93E59
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1568

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

Preview Lab → · Contrast checker → · Palette generator →

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