#5B1371#5B1371

#5B1371 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.155 H 316.5°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#5B1371
RGBrgb(91, 19, 113)
HSLhsl(286, 71%, 26%)
HSVhsv(286, 83%, 44%)
CMYKcmyk(19.5%, 83.2%, 0%, 55.7%)
CIE-LABlab(23.28, 45.41, -37.76)
CIE-LCHlch(23.28, 59.06, 320.26°)
OKLaboklab(35.9% 0.1124 -0.1065)
OKLCHoklch(35.9% 0.155 316.5)
XYZxyz(7.5274, 3.8825, 15.9725)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1371 #297113
analogous
#2C1371 #5B1371 #711358
triadic
#5B1371 #715B13 #13715B
tetradic
#5B1371 #712C13 #297113 #135871
square
#5B1371 #712C13 #297113 #135871
split-complementary
#5B1371 #587113 #13712C
monochromatic
#15041A #310A3D #5B1371 #851CA5 #AF25DA

Accessibility & contrast

On white

11.82
#5B1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5B1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1371
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1371#FFFFFF#000000##FFFFFF
##5B13711.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#13396F
Tritanopia (blue-blind)
#5A2942
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1371;
/* rgb */ color: rgb(91, 19, 113);
/* oklch */ color: oklch(35.9% 0.155 316.5);
Tailwind
colors: {
  custom: {
    50: '#8d5b9a',
    500: '#5b1371',
    950: '#000000',
  },
}
SCSS
$custom: #5b1371;
$custom-light: #8d5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1371",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 285.957,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.359,
    "c": 0.1548,
    "h": 316.5
  },
  "luminance": 0.03882
}

Semantic roles & 50–950 ramp

primary
#5B1371
secondary
#52A838
accent
#EE3A64
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1371

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

Preview Lab → · Contrast checker → · Palette generator →

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