#5E1371#5E1371

#5E1371 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.4% C 0.156 H 318.3°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#5E1371
RGBrgb(94, 19, 113)
HSLhsl(288, 71%, 26%)
HSVhsv(288, 83%, 44%)
CMYKcmyk(16.8%, 83.2%, 0%, 55.7%)
CIE-LABlab(23.80, 46.01, -36.89)
CIE-LCHlch(23.80, 58.98, 321.28°)
OKLaboklab(36.37% 0.1164 -0.1038)
OKLCHoklch(36.37% 0.156 318.3)
XYZxyz(7.8292, 4.0381, 15.9866)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1371 #267113
analogous
#2F1371 #5E1371 #711355
triadic
#5E1371 #715E13 #13715E
tetradic
#5E1371 #712F13 #267113 #135571
square
#5E1371 #712F13 #267113 #135571
split-complementary
#5E1371 #557113 #13712F
monochromatic
#16041A #320A3D #5E1371 #8A1CA5 #B525DA

Accessibility & contrast

On white

11.62
#5E1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5E1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1371
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1371#FFFFFF#000000##FFFFFF
##5E13711.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#183B6F
Tritanopia (blue-blind)
#5D2842
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1371;
/* rgb */ color: rgb(94, 19, 113);
/* oklch */ color: oklch(36.4% 0.156 318.3);
Tailwind
colors: {
  custom: {
    50: '#8f5b9a',
    500: '#5e1371',
    950: '#000000',
  },
}
SCSS
$custom: #5e1371;
$custom-light: #8f5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1371",
  "rgb": {
    "r": 94,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 287.872,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36366,
    "c": 0.15595,
    "h": 318.3
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#5E1371
secondary
#4FA838
accent
#EE3A5E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1371

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

Preview Lab → · Contrast checker → · Palette generator →

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