#5D1476#5D1476

#5D1476 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.7% C 0.159 H 315.4°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#5D1476
RGBrgb(93, 20, 118)
HSLhsl(285, 71%, 27%)
HSVhsv(285, 83%, 46%)
CMYKcmyk(21.2%, 83.1%, 0%, 53.7%)
CIE-LABlab(24.12, 46.52, -39.60)
CIE-LCHlch(24.12, 61.09, 319.59°)
OKLaboklab(36.68% 0.1133 -0.1118)
OKLCHoklch(36.68% 0.159 315.4)
XYZxyz(8.0338, 4.1358, 17.5111)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1476 #2D7614
analogous
#2C1476 #5D1476 #76145E
triadic
#5D1476 #765D14 #14765D
tetradic
#5D1476 #762C14 #2D7614 #145E76
square
#5D1476 #762C14 #2D7614 #145E76
split-complementary
#5D1476 #5E7614 #14762C
monochromatic
#15041A #340B42 #5D1476 #861DAA #AE2ADB

Accessibility & contrast

On white

11.49
#5D1476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5D1476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1476
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1476#FFFFFF#000000##FFFFFF
##5D14761.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#0F3B74
Tritanopia (blue-blind)
#5B2B46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d1476;
/* rgb */ color: rgb(93, 20, 118);
/* oklch */ color: oklch(36.7% 0.159 315.4);
Tailwind
colors: {
  custom: {
    50: '#8f5c9e',
    500: '#5d1476',
    950: '#000000',
  },
}
SCSS
$custom: #5d1476;
$custom-light: #8f5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1476",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 284.694,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36676,
    "c": 0.15916,
    "h": 315.4
  },
  "luminance": 0.04135
}

Semantic roles & 50–950 ramp

primary
#5D1476
secondary
#57AC3A
accent
#EE3A68
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1476

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

Preview Lab → · Contrast checker → · Palette generator →

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