#5D1557#5D1557

#5D1557 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.130 H 331.7°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#5D1557
RGBrgb(93, 21, 87)
HSLhsl(305, 63%, 22%)
HSVhsv(305, 77%, 36%)
CMYKcmyk(0%, 77.4%, 6.5%, 63.5%)
CIE-LABlab(22.13, 40.14, -22.52)
CIE-LCHlch(22.13, 46.02, 330.71°)
OKLaboklab(34.59% 0.1149 -0.0619)
OKLCHoklch(34.59% 0.13 331.7)
XYZxyz(6.5027, 3.5521, 9.3581)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1557 #155D1B
analogous
#3F155D #5D1557 #5D1533
triadic
#5D1557 #575D15 #15575D
tetradic
#5D1557 #5D3F15 #155D1B #15335D
square
#5D1557 #5D3F15 #155D1B #15335D
split-complementary
#5D1557 #335D15 #155D3F
monochromatic
#190617 #2B0A28 #5D1557 #8F2086 #C12CB4

Accessibility & contrast

On white

12.28
#5D1557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5D1557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1557
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1557#FFFFFF#000000##FFFFFF
##5D15571.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102F59
Deuteranopia (green-blind)
#2C3855
Tritanopia (blue-blind)
#611D34
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5d1557;
/* rgb */ color: rgb(93, 21, 87);
/* oklch */ color: oklch(34.6% 0.130 331.7);
Tailwind
colors: {
  custom: {
    50: '#8e5b86',
    500: '#5d1557',
    950: '#000000',
  },
}
SCSS
$custom: #5d1557;
$custom-light: #8e5b86;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1557",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 305,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34594,
    "c": 0.13049,
    "h": 331.7
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#5D1557
secondary
#399441
accent
#E64F42
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5D1557

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

Preview Lab → · Contrast checker → · Palette generator →

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