#5D1381#5D1381

#5D1381 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.5% C 0.170 H 310.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#5D1381
RGBrgb(93, 19, 129)
HSLhsl(280, 74%, 29%)
HSVhsv(280, 85%, 51%)
CMYKcmyk(27.9%, 85.3%, 0%, 49.4%)
CIE-LABlab(24.88, 49.19, -45.34)
CIE-LCHlch(24.88, 66.90, 317.33°)
OKLaboklab(37.49% 0.1114 -0.1287)
OKLCHoklch(37.49% 0.17 310.9)
XYZxyz(8.7088, 4.3781, 21.1509)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1381 #378113
analogous
#261381 #5D1381 #81136E
triadic
#5D1381 #815D13 #13815D
tetradic
#5D1381 #812613 #378113 #136E81
square
#5D1381 #812613 #378113 #136E81
split-complementary
#5D1381 #6E8113 #138126
monochromatic
#13041B #370B4C #5D1381 #831BB6 #A62EE0

Accessibility & contrast

On white

11.20
#5D1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5D1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1381
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1381#FFFFFF#000000##FFFFFF
##5D13811.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#58304C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d1381;
/* rgb */ color: rgb(93, 19, 129);
/* oklch */ color: oklch(37.5% 0.170 310.9);
Tailwind
colors: {
  custom: {
    50: '#8f5ca6',
    500: '#5d1381',
    950: '#000000',
  },
}
SCSS
$custom: #5d1381;
$custom-light: #8f5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1381",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 280.364,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37489,
    "c": 0.17022,
    "h": 310.9
  },
  "luminance": 0.04378
}

Semantic roles & 50–950 ramp

primary
#5D1381
secondary
#62B63A
accent
#F13774
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1381

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

Preview Lab → · Contrast checker → · Palette generator →

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