#5D1552#5D1552

#5D1552 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.3% C 0.126 H 334.9°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#5D1552
RGBrgb(93, 21, 82)
HSLhsl(309, 63%, 22%)
HSVhsv(309, 77%, 36%)
CMYKcmyk(0%, 77.4%, 11.8%, 63.5%)
CIE-LABlab(21.85, 39.27, -19.61)
CIE-LCHlch(21.85, 43.90, 333.46°)
OKLaboklab(34.3% 0.1145 -0.0536)
OKLCHoklch(34.3% 0.126 334.9)
XYZxyz(6.3054, 3.4732, 8.3193)
Luminance0.0347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1552 #155D20
analogous
#44155D #5D1552 #5D152E
triadic
#5D1552 #525D15 #15525D
tetradic
#5D1552 #5D4415 #155D20 #152E5D
square
#5D1552 #5D4415 #155D20 #152E5D
split-complementary
#5D1552 #2E5D15 #155D44
monochromatic
#190616 #2B0A26 #5D1552 #8F207E #C12CAA

Accessibility & contrast

On white

12.39
#5D1552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5D1552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1552
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1552#FFFFFF#000000##FFFFFF
##5D15521.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152E54
Deuteranopia (green-blind)
#2E3850
Tritanopia (blue-blind)
#621B32
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5d1552;
/* rgb */ color: rgb(93, 21, 82);
/* oklch */ color: oklch(34.3% 0.126 334.9);
Tailwind
colors: {
  custom: {
    50: '#8e5b83',
    500: '#5d1552',
    950: '#000000',
  },
}
SCSS
$custom: #5d1552;
$custom-light: #8e5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1552",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 309.167,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34297,
    "c": 0.12639,
    "h": 334.9
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#5D1552
secondary
#399447
accent
#E65B42
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040A
muted
#7D797C

Preview Lab

Preview with #5D1552

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

Preview Lab → · Contrast checker → · Palette generator →

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