#5D1481#5D1481

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

Color values

HEX#5D1481
RGBrgb(93, 20, 129)
HSLhsl(280, 73%, 29%)
HSVhsv(280, 84%, 51%)
CMYKcmyk(27.9%, 84.5%, 0%, 49.4%)
CIE-LABlab(24.99, 48.87, -45.17)
CIE-LCHlch(24.99, 66.55, 317.26°)
OKLaboklab(37.56% 0.1107 -0.1282)
OKLCHoklch(37.56% 0.169 310.8)
XYZxyz(8.7260, 4.4127, 21.1567)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1481 #388114
analogous
#261481 #5D1481 #81146F
triadic
#5D1481 #815D14 #14815D
tetradic
#5D1481 #812614 #388114 #146F81
square
#5D1481 #812614 #388114 #146F81
split-complementary
#5D1481 #6F8114 #148126
monochromatic
#13041A #370C4C #5D1481 #831CB6 #A530DF

Accessibility & contrast

On white

11.16
#5D1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1481
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1481#FFFFFF#000000##FFFFFF
##5D14811.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1481;
/* rgb */ color: rgb(93, 20, 129);
/* oklch */ color: oklch(37.6% 0.169 310.8);
Tailwind
colors: {
  custom: {
    50: '#8f5da6',
    500: '#5d1481',
    950: '#000000',
  },
}
SCSS
$custom: #5d1481;
$custom-light: #8f5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1481",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 280.183,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37563,
    "c": 0.16935,
    "h": 310.8
  },
  "luminance": 0.04412
}

Semantic roles & 50–950 ramp

primary
#5D1481
secondary
#63B63B
accent
#F03875
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1481

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

Preview Lab → · Contrast checker → · Palette generator →

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