#5D1576#5D1576

#5D1576 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.158 H 315.3°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#5D1576
RGBrgb(93, 21, 118)
HSLhsl(285, 70%, 27%)
HSVhsv(285, 82%, 46%)
CMYKcmyk(21.2%, 82.2%, 0%, 53.7%)
CIE-LABlab(24.23, 46.18, -39.41)
CIE-LCHlch(24.23, 60.71, 319.52°)
OKLaboklab(36.76% 0.1124 -0.1113)
OKLCHoklch(36.76% 0.158 315.3)
XYZxyz(8.0518, 4.1718, 17.5171)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1576 #2E7615
analogous
#2D1576 #5D1576 #76155F
triadic
#5D1576 #765D15 #15765D
tetradic
#5D1576 #762D15 #2E7615 #155F76
square
#5D1576 #762D15 #2E7615 #155F76
split-complementary
#5D1576 #5F7615 #15762D
monochromatic
#14051A #340C42 #5D1576 #861EAA #AD2CD9

Accessibility & contrast

On white

11.45
#5D1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1576
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1576#FFFFFF#000000##FFFFFF
##5D15761.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#103B74
Tritanopia (blue-blind)
#5B2C46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1576;
/* rgb */ color: rgb(93, 21, 118);
/* oklch */ color: oklch(36.8% 0.158 315.3);
Tailwind
colors: {
  custom: {
    50: '#8f5c9e',
    500: '#5d1576',
    950: '#000000',
  },
}
SCSS
$custom: #5d1576;
$custom-light: #8f5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1576",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 284.536,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36757,
    "c": 0.15817,
    "h": 315.3
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#5D1576
secondary
#58AC3B
accent
#ED3B69
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1576

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

Preview Lab → · Contrast checker → · Palette generator →

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