#5D1571#5D1571

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

Color values

HEX#5D1571
RGBrgb(93, 21, 113)
HSLhsl(287, 69%, 26%)
HSVhsv(287, 81%, 44%)
CMYKcmyk(17.7%, 81.4%, 0%, 55.7%)
CIE-LABlab(23.86, 45.14, -36.81)
CIE-LCHlch(23.86, 58.24, 320.81°)
OKLaboklab(36.37% 0.1133 -0.1036)
OKLCHoklch(36.37% 0.154 317.6)
XYZxyz(7.7626, 4.0561, 15.9936)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1571 #297115
analogous
#2F1571 #5D1571 #711557
triadic
#5D1571 #715D15 #15715D
tetradic
#5D1571 #712F15 #297115 #155771
square
#5D1571 #712F15 #297115 #155771
split-complementary
#5D1571 #577115 #15712F
monochromatic
#15051A #330B3D #5D1571 #871FA5 #B129D7

Accessibility & contrast

On white

11.59
#5D1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5D1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1571
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1571#FFFFFF#000000##FFFFFF
##5D15711.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#183B6F
Tritanopia (blue-blind)
#5C2A43
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d1571;
/* rgb */ color: rgb(93, 21, 113);
/* oklch */ color: oklch(36.4% 0.154 317.6);
Tailwind
colors: {
  custom: {
    50: '#8e5c9a',
    500: '#5d1571',
    950: '#000000',
  },
}
SCSS
$custom: #5d1571;
$custom-light: #8e5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1571",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 286.957,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36374,
    "c": 0.15355,
    "h": 317.6
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#5D1571
secondary
#52A73B
accent
#EB3C62
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1571

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

Preview Lab → · Contrast checker → · Palette generator →

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