#5B1567#5B1567

#5B1567 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.144 H 321.3°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#5B1567
RGBrgb(91, 21, 103)
HSLhsl(291, 66%, 24%)
HSVhsv(291, 80%, 40%)
CMYKcmyk(11.7%, 79.6%, 0%, 59.6%)
CIE-LABlab(22.79, 42.68, -32.05)
CIE-LCHlch(22.79, 53.37, 323.09°)
OKLaboklab(35.33% 0.112 -0.0898)
OKLCHoklch(35.33% 0.144 321.3)
XYZxyz(7.0305, 3.7401, 13.1809)
Luminance0.0374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1567 #216715
analogous
#321567 #5B1567 #67154A
triadic
#5B1567 #675B15 #15675B
tetradic
#5B1567 #673215 #216715 #154A67
square
#5B1567 #673215 #216715 #154A67
split-complementary
#5B1567 #4A6715 #156732
monochromatic
#160519 #2E0B34 #5B1567 #881F9A #B52ACD

Accessibility & contrast

On white

12.01
#5B1567 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1567
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1567#FFFFFF#000000##FFFFFF
##5B15671.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003269
Deuteranopia (green-blind)
#1F3965
Tritanopia (blue-blind)
#5C253D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1567;
/* rgb */ color: rgb(91, 21, 103);
/* oklch */ color: oklch(35.3% 0.144 321.3);
Tailwind
colors: {
  custom: {
    50: '#8c5b93',
    500: '#5b1567',
    950: '#000000',
  },
}
SCSS
$custom: #5b1567;
$custom-light: #8c5b93;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1567",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 291.22,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35325,
    "c": 0.14352,
    "h": 321.3
  },
  "luminance": 0.0374
}

Semantic roles & 50–950 ramp

primary
#5B1567
secondary
#499E3A
accent
#E93F58
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1567

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

Preview Lab → · Contrast checker → · Palette generator →

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