#5B1374#5B1374

#5B1374 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.158 H 315.2°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#5B1374
RGBrgb(91, 19, 116)
HSLhsl(285, 72%, 26%)
HSVhsv(285, 84%, 45%)
CMYKcmyk(21.6%, 83.6%, 0%, 54.5%)
CIE-LABlab(23.51, 46.04, -39.31)
CIE-LCHlch(23.51, 60.54, 319.51°)
OKLaboklab(36.13% 0.1118 -0.111)
OKLCHoklch(36.13% 0.158 315.2)
XYZxyz(7.6991, 3.9511, 16.8767)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1374 #2C7413
analogous
#2B1374 #5B1374 #74135D
triadic
#5B1374 #745B13 #13745B
tetradic
#5B1374 #742B13 #2C7413 #135D74
square
#5B1374 #742B13 #2C7413 #135D74
split-complementary
#5B1374 #5D7413 #13742B
monochromatic
#15041A #320A3F #5B1374 #841CA9 #AD26DB

Accessibility & contrast

On white

11.73
#5B1374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1374
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1374#FFFFFF#000000##FFFFFF
##5B13741.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#0E3A72
Tritanopia (blue-blind)
#592A44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1374;
/* rgb */ color: rgb(91, 19, 116);
/* oklch */ color: oklch(36.1% 0.158 315.2);
Tailwind
colors: {
  custom: {
    50: '#8d5b9d',
    500: '#5b1374',
    950: '#000000',
  },
}
SCSS
$custom: #5b1374;
$custom-light: #8d5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1374",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 284.536,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36134,
    "c": 0.15756,
    "h": 315.2
  },
  "luminance": 0.03951
}

Semantic roles & 50–950 ramp

primary
#5B1374
secondary
#56AA38
accent
#EF3968
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1374

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

Preview Lab → · Contrast checker → · Palette generator →

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