#5E1576#5E1576

#5E1576 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.159 H 315.9°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#5E1576
RGBrgb(94, 21, 118)
HSLhsl(285, 70%, 27%)
HSVhsv(285, 82%, 46%)
CMYKcmyk(20.3%, 82.2%, 0%, 53.7%)
CIE-LABlab(24.40, 46.38, -39.13)
CIE-LCHlch(24.40, 60.68, 319.85°)
OKLaboklab(36.91% 0.1138 -0.1104)
OKLCHoklch(36.91% 0.159 315.9)
XYZxyz(8.1538, 4.2243, 17.5219)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1576 #2D7615
analogous
#2E1576 #5E1576 #76155D
triadic
#5E1576 #765E15 #15765E
tetradic
#5E1576 #762E15 #2D7615 #155D76
square
#5E1576 #762E15 #2D7615 #155D76
split-complementary
#5E1576 #5D7615 #15762E
monochromatic
#15051A #350C42 #5E1576 #871EAA #AF2CD9

Accessibility & contrast

On white

11.38
#5E1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5E1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1576
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1576#FFFFFF#000000##FFFFFF
##5E15761.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#123C74
Tritanopia (blue-blind)
#5C2C46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1576;
/* rgb */ color: rgb(94, 21, 118);
/* oklch */ color: oklch(36.9% 0.159 315.9);
Tailwind
colors: {
  custom: {
    50: '#8f5c9e',
    500: '#5e1576',
    950: '#000000',
  },
}
SCSS
$custom: #5e1576;
$custom-light: #8f5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1576",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 285.155,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36909,
    "c": 0.15854,
    "h": 315.9
  },
  "luminance": 0.04224
}

Semantic roles & 50–950 ramp

primary
#5E1576
secondary
#57AC3B
accent
#ED3B67
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1576

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

Preview Lab → · Contrast checker → · Palette generator →

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