#5D1A79#5D1A79

#5D1A79 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.156 H 313.6°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#5D1A79
RGBrgb(93, 26, 121)
HSLhsl(282, 65%, 29%)
HSVhsv(282, 79%, 47%)
CMYKcmyk(23.1%, 78.5%, 0%, 52.5%)
CIE-LABlab(25.10, 44.99, -39.93)
CIE-LCHlch(25.10, 60.15, 318.41°)
OKLaboklab(37.44% 0.1073 -0.1128)
OKLCHoklch(37.44% 0.156 313.6)
XYZxyz(8.3342, 4.4467, 18.5047)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A79 #36791A
analogous
#2E1A79 #5D1A79 #791A66
triadic
#5D1A79 #795D1A #1A795D
tetradic
#5D1A79 #792E1A #36791A #1A6679
square
#5D1A79 #792E1A #36791A #1A6679
split-complementary
#5D1A79 #66791A #1A792E
monochromatic
#130519 #360F47 #5D1A79 #8425AB #A739D4

Accessibility & contrast

On white

11.12
#5D1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1A79
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A79#FFFFFF#000000##FFFFFF
##5D1A791.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#113D77
Tritanopia (blue-blind)
#5A3049
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1a79;
/* rgb */ color: rgb(93, 26, 121);
/* oklch */ color: oklch(37.4% 0.156 313.6);
Tailwind
colors: {
  custom: {
    50: '#8f5fa0',
    500: '#5d1a79',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a79;
$custom-light: #8f5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a79",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 282.316,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37439,
    "c": 0.15569,
    "h": 313.6
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#5D1A79
secondary
#61AD41
accent
#E84072
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5D1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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