#5E1D71#5E1D71

#5E1D71 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.3% C 0.145 H 317.5°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#5E1D71
RGBrgb(94, 29, 113)
HSLhsl(286, 59%, 28%)
HSVhsv(286, 74%, 44%)
CMYKcmyk(16.8%, 74.3%, 0%, 55.7%)
CIE-LABlab(25.11, 42.25, -34.78)
CIE-LCHlch(25.11, 54.73, 320.54°)
OKLaboklab(37.3% 0.1066 -0.0977)
OKLCHoklch(37.3% 0.145 317.5)
XYZxyz(8.0357, 4.4510, 16.0554)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D71 #30711D
analogous
#341D71 #5E1D71 #711D5A
triadic
#5E1D71 #715E1D #1D715E
tetradic
#5E1D71 #71341D #30711D #1D5A71
square
#5E1D71 #71341D #30711D #1D5A71
split-complementary
#5E1D71 #5A711D #1D7134
monochromatic
#140618 #351140 #5E1D71 #8729A2 #AC3CCD

Accessibility & contrast

On white

11.11
#5E1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5E1D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D71
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D71#FFFFFF#000000##FFFFFF
##5E1D711.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#1F3E6F
Tritanopia (blue-blind)
#5D2E45
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e1d71;
/* rgb */ color: rgb(94, 29, 113);
/* oklch */ color: oklch(37.3% 0.145 317.5);
Tailwind
colors: {
  custom: {
    50: '#8f609a',
    500: '#5e1d71',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d71;
$custom-light: #8f609a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d71",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 286.429,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37297,
    "c": 0.14461,
    "h": 317.5
  },
  "luminance": 0.04451
}

Semantic roles & 50–950 ramp

primary
#5E1D71
secondary
#5AA544
accent
#E24569
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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