#5B1373#5B1373

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

Color values

HEX#5B1373
RGBrgb(91, 19, 115)
HSLhsl(285, 72%, 26%)
HSVhsv(285, 83%, 45%)
CMYKcmyk(20.9%, 83.5%, 0%, 54.9%)
CIE-LABlab(23.43, 45.83, -38.80)
CIE-LCHlch(23.43, 60.05, 319.75°)
OKLaboklab(36.06% 0.112 -0.1095)
OKLCHoklch(36.06% 0.157 315.6)
XYZxyz(7.6413, 3.9280, 16.5720)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1373 #2B7313
analogous
#2B1373 #5B1373 #73135B
triadic
#5B1373 #735B13 #13735B
tetradic
#5B1373 #732B13 #2B7313 #135B73
square
#5B1373 #732B13 #2B7313 #135B73
split-complementary
#5B1373 #5B7313 #13732B
monochromatic
#15041A #310A3E #5B1373 #851CA8 #AE25DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B1373#FFFFFF#000000##FFFFFF
##5B13731.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)
#003476
Deuteranopia (green-blind)
#0F3A71
Tritanopia (blue-blind)
#592A44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1373;
/* rgb */ color: rgb(91, 19, 115);
/* oklch */ color: oklch(36.1% 0.157 315.6);
Tailwind
colors: {
  custom: {
    50: '#8d5b9c',
    500: '#5b1373',
    950: '#000000',
  },
}
SCSS
$custom: #5b1373;
$custom-light: #8d5b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1373",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 285,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36055,
    "c": 0.15663,
    "h": 315.6
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#5B1373
secondary
#55AA38
accent
#EE3967
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1373

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

Preview Lab → · Contrast checker → · Palette generator →

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