#5E1E71#5E1E71

#5E1E71 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.4% C 0.143 H 317.4°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#5E1E71
RGBrgb(94, 30, 113)
HSLhsl(286, 58%, 28%)
HSVhsv(286, 73%, 44%)
CMYKcmyk(16.8%, 73.5%, 0%, 55.7%)
CIE-LABlab(25.26, 41.82, -34.54)
CIE-LCHlch(25.26, 54.24, 320.45°)
OKLaboklab(37.41% 0.1055 -0.097)
OKLCHoklch(37.41% 0.143 317.4)
XYZxyz(8.0606, 4.5008, 16.0637)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E71 #31711E
analogous
#341E71 #5E1E71 #711E5A
triadic
#5E1E71 #715E1E #1E715E
tetradic
#5E1E71 #71341E #31711E #1E5A71
square
#5E1E71 #71341E #31711E #1E5A71
split-complementary
#5E1E71 #5A711E #1E7134
monochromatic
#140618 #361141 #5E1E71 #862BA1 #AB3ECC

Accessibility & contrast

On white

11.05
#5E1E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5E1E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E71
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E71#FFFFFF#000000##FFFFFF
##5E1E711.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#203E6F
Tritanopia (blue-blind)
#5D2E45
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e1e71;
/* rgb */ color: rgb(94, 30, 113);
/* oklch */ color: oklch(37.4% 0.143 317.4);
Tailwind
colors: {
  custom: {
    50: '#8f609a',
    500: '#5e1e71',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e71;
$custom-light: #8f609a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e71",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 286.265,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37406,
    "c": 0.14331,
    "h": 317.4
  },
  "luminance": 0.045
}

Semantic roles & 50–950 ramp

primary
#5E1E71
secondary
#5CA546
accent
#E1476A
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1E71

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

Preview Lab → · Contrast checker → · Palette generator →

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