#5D1581#5D1581

#5D1581 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.6% C 0.168 H 310.7°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#5D1581
RGBrgb(93, 21, 129)
HSLhsl(280, 72%, 29%)
HSVhsv(280, 84%, 51%)
CMYKcmyk(27.9%, 83.7%, 0%, 49.4%)
CIE-LABlab(25.10, 48.55, -44.98)
CIE-LCHlch(25.10, 66.19, 317.18°)
OKLaboklab(37.64% 0.1099 -0.1276)
OKLCHoklch(37.64% 0.168 310.7)
XYZxyz(8.7440, 4.4487, 21.1627)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1581 #398115
analogous
#271581 #5D1581 #81156F
triadic
#5D1581 #815D15 #15815D
tetradic
#5D1581 #812715 #398115 #156F81
square
#5D1581 #812715 #398115 #156F81
split-complementary
#5D1581 #6F8115 #158127
monochromatic
#13041A #370C4C #5D1581 #831EB6 #A533DE

Accessibility & contrast

On white

11.11
#5D1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5D1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1581
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1581#FFFFFF#000000##FFFFFF
##5D15811.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#58314C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1581;
/* rgb */ color: rgb(93, 21, 129);
/* oklch */ color: oklch(37.6% 0.168 310.7);
Tailwind
colors: {
  custom: {
    50: '#8f5da6',
    500: '#5d1581',
    950: '#000000',
  },
}
SCSS
$custom: #5d1581;
$custom-light: #8f5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1581",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 280,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37641,
    "c": 0.16846,
    "h": 310.7
  },
  "luminance": 0.04448
}

Semantic roles & 50–950 ramp

primary
#5D1581
secondary
#65B63C
accent
#EF3976
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1581

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

Preview Lab → · Contrast checker → · Palette generator →

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