#5E1573#5E1573

#5E1573 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.156 H 317.2°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#5E1573
RGBrgb(94, 21, 115)
HSLhsl(287, 69%, 27%)
HSVhsv(287, 82%, 45%)
CMYKcmyk(18.3%, 81.7%, 0%, 54.9%)
CIE-LABlab(24.17, 45.76, -37.57)
CIE-LCHlch(24.17, 59.21, 320.61°)
OKLaboklab(36.68% 0.1143 -0.1058)
OKLCHoklch(36.68% 0.156 317.2)
XYZxyz(7.9783, 4.1542, 16.5979)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1573 #2A7315
analogous
#2F1573 #5E1573 #731559
triadic
#5E1573 #735E15 #15735E
tetradic
#5E1573 #732F15 #2A7315 #155973
square
#5E1573 #732F15 #2A7315 #155973
split-complementary
#5E1573 #597315 #15732F
monochromatic
#15051A #340C3F #5E1573 #881EA7 #B12AD8

Accessibility & contrast

On white

11.47
#5E1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5E1573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1573
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1573#FFFFFF#000000##FFFFFF
##5E15731.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#173C71
Tritanopia (blue-blind)
#5D2A44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1573;
/* rgb */ color: rgb(94, 21, 115);
/* oklch */ color: oklch(36.7% 0.156 317.2);
Tailwind
colors: {
  custom: {
    50: '#8f5c9c',
    500: '#5e1573',
    950: '#000000',
  },
}
SCSS
$custom: #5e1573;
$custom-light: #8f5c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1573",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 286.596,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36679,
    "c": 0.15578,
    "h": 317.2
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#5E1573
secondary
#53A93B
accent
#EC3C63
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1573

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

Preview Lab → · Contrast checker → · Palette generator →

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