#5E1578#5E1578

#5E1578 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.160 H 315.0°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#5E1578
RGBrgb(94, 21, 120)
HSLhsl(284, 70%, 28%)
HSVhsv(284, 83%, 47%)
CMYKcmyk(21.7%, 82.5%, 0%, 52.9%)
CIE-LABlab(24.55, 46.80, -40.16)
CIE-LCHlch(24.55, 61.67, 319.37°)
OKLaboklab(37.06% 0.1134 -0.1134)
OKLCHoklch(37.06% 0.16 315)
XYZxyz(8.2739, 4.2724, 18.1545)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1578 #2F7815
analogous
#2C1578 #5E1578 #781561
triadic
#5E1578 #785E15 #15785E
tetradic
#5E1578 #782C15 #2F7815 #156178
square
#5E1578 #782C15 #2F7815 #156178
split-complementary
#5E1578 #617815 #15782C
monochromatic
#14051A #350C44 #5E1578 #871EAC #AD2DDA

Accessibility & contrast

On white

11.32
#5E1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5E1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1578
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1578#FFFFFF#000000##FFFFFF
##5E15781.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#0F3C76
Tritanopia (blue-blind)
#5C2D47
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1578;
/* rgb */ color: rgb(94, 21, 120);
/* oklch */ color: oklch(37.1% 0.160 315.0);
Tailwind
colors: {
  custom: {
    50: '#8f5da0',
    500: '#5e1578',
    950: '#000000',
  },
}
SCSS
$custom: #5e1578;
$custom-light: #8f5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1578",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 284.242,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37064,
    "c": 0.16039,
    "h": 315
  },
  "luminance": 0.04272
}

Semantic roles & 50–950 ramp

primary
#5E1578
secondary
#59AE3B
accent
#ED3B6A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5E1578

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

Preview Lab → · Contrast checker → · Palette generator →

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