#5B1370#5B1370

#5B1370 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.154 H 317.0°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#5B1370
RGBrgb(91, 19, 112)
HSLhsl(286, 71%, 26%)
HSVhsv(286, 83%, 44%)
CMYKcmyk(18.7%, 83%, 0%, 56.1%)
CIE-LABlab(23.20, 45.21, -37.23)
CIE-LCHlch(23.20, 58.57, 320.52°)
OKLaboklab(35.82% 0.1126 -0.1049)
OKLCHoklch(35.82% 0.154 317)
XYZxyz(7.4714, 3.8601, 15.6776)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1370 #287013
analogous
#2D1370 #5B1370 #701356
triadic
#5B1370 #705B13 #13705B
tetradic
#5B1370 #702D13 #287013 #135670
square
#5B1370 #702D13 #287013 #135670
split-complementary
#5B1370 #567013 #13702D
monochromatic
#15041A #300A3C #5B1370 #861CA4 #B025D9

Accessibility & contrast

On white

11.85
#5B1370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5B1370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1370
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1370#FFFFFF#000000##FFFFFF
##5B13701.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#14396E
Tritanopia (blue-blind)
#5A2942
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1370;
/* rgb */ color: rgb(91, 19, 112);
/* oklch */ color: oklch(35.8% 0.154 317.0);
Tailwind
colors: {
  custom: {
    50: '#8d5b9a',
    500: '#5b1370',
    950: '#000000',
  },
}
SCSS
$custom: #5b1370;
$custom-light: #8d5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1370",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 286.452,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35822,
    "c": 0.15388,
    "h": 317
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#5B1370
secondary
#51A738
accent
#EE3A63
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1370

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

Preview Lab → · Contrast checker → · Palette generator →

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