#5E1D72#5E1D72

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

Color values

HEX#5E1D72
RGBrgb(94, 29, 114)
HSLhsl(286, 59%, 28%)
HSVhsv(286, 75%, 45%)
CMYKcmyk(17.5%, 74.6%, 0%, 55.3%)
CIE-LABlab(25.18, 42.46, -35.31)
CIE-LCHlch(25.18, 55.23, 320.25°)
OKLaboklab(37.37% 0.1065 -0.0993)
OKLCHoklch(37.37% 0.146 317)
XYZxyz(8.0923, 4.4737, 16.3536)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D72 #31721D
analogous
#331D72 #5E1D72 #721D5B
triadic
#5E1D72 #725E1D #1D725E
tetradic
#5E1D72 #72331D #31721D #1D5B72
square
#5E1D72 #72331D #31721D #1D5B72
split-complementary
#5E1D72 #5B721D #1D7233
monochromatic
#140618 #361141 #5E1D72 #8629A3 #AB3CCD

Accessibility & contrast

On white

11.08
#5E1D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1D72
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D72#FFFFFF#000000##FFFFFF
##5E1D721.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1d72;
/* rgb */ color: rgb(94, 29, 114);
/* oklch */ color: oklch(37.4% 0.146 317.0);
Tailwind
colors: {
  custom: {
    50: '#8f609b',
    500: '#5e1d72',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d72;
$custom-light: #8f609b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d72",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 285.882,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37369,
    "c": 0.1456,
    "h": 317
  },
  "luminance": 0.04473
}

Semantic roles & 50–950 ramp

primary
#5E1D72
secondary
#5CA645
accent
#E3456A
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1D72

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

Preview Lab → · Contrast checker → · Palette generator →

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