#5B1570#5B1570

#5B1570 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.0% C 0.152 H 316.9°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#5B1570
RGBrgb(91, 21, 112)
HSLhsl(286, 68%, 26%)
HSVhsv(286, 81%, 44%)
CMYKcmyk(18.7%, 81.2%, 0%, 56.1%)
CIE-LABlab(23.44, 44.52, -36.85)
CIE-LCHlch(23.44, 57.79, 320.38°)
OKLaboklab(35.99% 0.1108 -0.1038)
OKLCHoklch(35.99% 0.152 316.9)
XYZxyz(7.5067, 3.9307, 15.6894)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1570 #2A7015
analogous
#2D1570 #5B1570 #701557
triadic
#5B1570 #705B15 #15705B
tetradic
#5B1570 #702D15 #2A7015 #155770
square
#5B1570 #702D15 #2A7015 #155770
split-complementary
#5B1570 #577015 #15702D
monochromatic
#15051A #310B3C #5B1570 #851FA4 #AF29D7

Accessibility & contrast

On white

11.76
#5B1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5B1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1570
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1570#FFFFFF#000000##FFFFFF
##5B15701.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#163A6E
Tritanopia (blue-blind)
#5A2A42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1570;
/* rgb */ color: rgb(91, 21, 112);
/* oklch */ color: oklch(36.0% 0.152 316.9);
Tailwind
colors: {
  custom: {
    50: '#8d5c9a',
    500: '#5b1570',
    950: '#000000',
  },
}
SCSS
$custom: #5b1570;
$custom-light: #8d5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1570",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 286.154,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3599,
    "c": 0.15184,
    "h": 316.9
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#5B1570
secondary
#53A63B
accent
#EB3D65
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1570

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

Preview Lab → · Contrast checker → · Palette generator →

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