#5B1376#5B1376

#5B1376 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.159 H 314.3°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#5B1376
RGBrgb(91, 19, 118)
HSLhsl(284, 72%, 27%)
HSVhsv(284, 84%, 46%)
CMYKcmyk(22.9%, 83.9%, 0%, 53.7%)
CIE-LABlab(23.67, 46.46, -40.34)
CIE-LCHlch(23.67, 61.53, 319.03°)
OKLaboklab(36.29% 0.1114 -0.1141)
OKLCHoklch(36.29% 0.159 314.3)
XYZxyz(7.8167, 3.9982, 17.4960)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1376 #2E7613
analogous
#291376 #5B1376 #761360
triadic
#5B1376 #765B13 #13765B
tetradic
#5B1376 #762913 #2E7613 #136076
square
#5B1376 #762913 #2E7613 #136076
split-complementary
#5B1376 #607613 #137629
monochromatic
#14041A #320B41 #5B1376 #841BAB #AB27DC

Accessibility & contrast

On white

11.67
#5B1376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5B1376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1376
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1376#FFFFFF#000000##FFFFFF
##5B13761.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#093A74
Tritanopia (blue-blind)
#582B45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1376;
/* rgb */ color: rgb(91, 19, 118);
/* oklch */ color: oklch(36.3% 0.159 314.3);
Tailwind
colors: {
  custom: {
    50: '#8d5b9e',
    500: '#5b1376',
    950: '#000000',
  },
}
SCSS
$custom: #5b1376;
$custom-light: #8d5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1376",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 118
  },
  "hsl": {
    "h": 283.636,
    "s": 72.263,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36293,
    "c": 0.1594,
    "h": 314.3
  },
  "luminance": 0.03998
}

Semantic roles & 50–950 ramp

primary
#5B1376
secondary
#58AC39
accent
#EF396B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1376

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

Preview Lab → · Contrast checker → · Palette generator →

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