#5B1569#5B1569

#5B1569 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.145 H 320.3°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#5B1569
RGBrgb(91, 21, 105)
HSLhsl(290, 67%, 25%)
HSVhsv(290, 80%, 41%)
CMYKcmyk(13.3%, 80%, 0%, 58.8%)
CIE-LABlab(22.93, 43.08, -33.13)
CIE-LCHlch(22.93, 54.34, 322.44°)
OKLaboklab(35.47% 0.1118 -0.0929)
OKLCHoklch(35.47% 0.145 320.3)
XYZxyz(7.1320, 3.7808, 13.7160)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1569 #236915
analogous
#311569 #5B1569 #69154D
triadic
#5B1569 #695B15 #15695B
tetradic
#5B1569 #693115 #236915 #154D69
square
#5B1569 #693115 #236915 #154D69
split-complementary
#5B1569 #4D6915 #156931
monochromatic
#16051A #2F0B36 #5B1569 #871F9C #B329CF

Accessibility & contrast

On white

11.96
#5B1569 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5B1569 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1569
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1569#FFFFFF#000000##FFFFFF
##5B15691.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326B
Deuteranopia (green-blind)
#1E3967
Tritanopia (blue-blind)
#5B263E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1569;
/* rgb */ color: rgb(91, 21, 105);
/* oklch */ color: oklch(35.5% 0.145 320.3);
Tailwind
colors: {
  custom: {
    50: '#8d5b94',
    500: '#5b1569',
    950: '#000000',
  },
}
SCSS
$custom: #5b1569;
$custom-light: #8d5b94;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1569",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 105
  },
  "hsl": {
    "h": 290,
    "s": 66.667,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35469,
    "c": 0.14536,
    "h": 320.3
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#5B1569
secondary
#4BA03A
accent
#EA3E5B
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1569

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

Preview Lab → · Contrast checker → · Palette generator →

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