#5E1571#5E1571

#5E1571 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.154 H 318.1°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#5E1571
RGBrgb(94, 21, 113)
HSLhsl(288, 69%, 26%)
HSVhsv(288, 81%, 44%)
CMYKcmyk(16.8%, 81.4%, 0%, 55.7%)
CIE-LABlab(24.03, 45.35, -36.52)
CIE-LCHlch(24.03, 58.23, 321.15°)
OKLaboklab(36.53% 0.1146 -0.1028)
OKLCHoklch(36.53% 0.154 318.1)
XYZxyz(7.8645, 4.1086, 15.9984)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1571 #287115
analogous
#301571 #5E1571 #711556
triadic
#5E1571 #715E15 #15715E
tetradic
#5E1571 #713015 #287115 #155671
square
#5E1571 #713015 #287115 #155671
split-complementary
#5E1571 #567115 #157130
monochromatic
#15051A #330B3D #5E1571 #891FA5 #B329D7

Accessibility & contrast

On white

11.53
#5E1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5E1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1571
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1571#FFFFFF#000000##FFFFFF
##5E15711.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#193B6F
Tritanopia (blue-blind)
#5D2943
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1571;
/* rgb */ color: rgb(94, 21, 113);
/* oklch */ color: oklch(36.5% 0.154 318.1);
Tailwind
colors: {
  custom: {
    50: '#8f5c9a',
    500: '#5e1571',
    950: '#000000',
  },
}
SCSS
$custom: #5e1571;
$custom-light: #8f5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1571",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 287.609,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36529,
    "c": 0.15395,
    "h": 318.1
  },
  "luminance": 0.04108
}

Semantic roles & 50–950 ramp

primary
#5E1571
secondary
#51A73B
accent
#EB3C60
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1571

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

Preview Lab → · Contrast checker → · Palette generator →

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