#5D1480#5D1480

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

Color values

HEX#5D1480
RGBrgb(93, 20, 128)
HSLhsl(281, 73%, 29%)
HSVhsv(281, 84%, 50%)
CMYKcmyk(27.3%, 84.4%, 0%, 49.8%)
CIE-LABlab(24.91, 48.66, -44.67)
CIE-LCHlch(24.91, 66.05, 317.45°)
OKLaboklab(37.48% 0.111 -0.1267)
OKLCHoklch(37.48% 0.168 311.2)
XYZxyz(8.6599, 4.3862, 20.8083)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1480 #378014
analogous
#271480 #5D1480 #80146D
triadic
#5D1480 #805D14 #14805D
tetradic
#5D1480 #802714 #378014 #146D80
square
#5D1480 #802714 #378014 #146D80
split-complementary
#5D1480 #6D8014 #148027
monochromatic
#13041A #370C4B #5D1480 #831CB5 #A630DF

Accessibility & contrast

On white

11.19
#5D1480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1480
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1480#FFFFFF#000000##FFFFFF
##5D14801.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#58304B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d1480;
/* rgb */ color: rgb(93, 20, 128);
/* oklch */ color: oklch(37.5% 0.168 311.2);
Tailwind
colors: {
  custom: {
    50: '#8f5da6',
    500: '#5d1480',
    950: '#000000',
  },
}
SCSS
$custom: #5d1480;
$custom-light: #8f5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1480",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 280.556,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3748,
    "c": 0.16843,
    "h": 311.2
  },
  "luminance": 0.04386
}

Semantic roles & 50–950 ramp

primary
#5D1480
secondary
#62B53B
accent
#F03874
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1480

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

Preview Lab → · Contrast checker → · Palette generator →

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