#5D1578#5D1578

#5D1578 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.160 H 314.4°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#5D1578
RGBrgb(93, 21, 120)
HSLhsl(284, 70%, 28%)
HSVhsv(284, 83%, 47%)
CMYKcmyk(22.5%, 82.5%, 0%, 52.9%)
CIE-LABlab(24.39, 46.61, -40.44)
CIE-LCHlch(24.39, 61.71, 319.05°)
OKLaboklab(36.91% 0.112 -0.1143)
OKLCHoklch(36.91% 0.16 314.4)
XYZxyz(8.1720, 4.2198, 18.1497)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1578 #307815
analogous
#2B1578 #5D1578 #781562
triadic
#5D1578 #785D15 #15785D
tetradic
#5D1578 #782B15 #307815 #156278
square
#5D1578 #782B15 #307815 #156278
split-complementary
#5D1578 #627815 #15782B
monochromatic
#14051A #350C44 #5D1578 #851EAC #AB2DDA

Accessibility & contrast

On white

11.39
#5D1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5D1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1578
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1578#FFFFFF#000000##FFFFFF
##5D15781.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1578;
/* rgb */ color: rgb(93, 21, 120);
/* oklch */ color: oklch(36.9% 0.160 314.4);
Tailwind
colors: {
  custom: {
    50: '#8f5ca0',
    500: '#5d1578',
    950: '#000000',
  },
}
SCSS
$custom: #5d1578;
$custom-light: #8f5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1578",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 283.636,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36914,
    "c": 0.16004,
    "h": 314.4
  },
  "luminance": 0.0422
}

Semantic roles & 50–950 ramp

primary
#5D1578
secondary
#5AAE3B
accent
#ED3B6B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5D1578

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

Preview Lab → · Contrast checker → · Palette generator →

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