#5D1471#5D1471

#5D1471 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.155 H 317.6°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#5D1471
RGBrgb(93, 20, 113)
HSLhsl(287, 70%, 26%)
HSVhsv(287, 82%, 44%)
CMYKcmyk(17.7%, 82.3%, 0%, 55.7%)
CIE-LABlab(23.74, 45.48, -37.00)
CIE-LCHlch(23.74, 58.63, 320.87°)
OKLaboklab(36.29% 0.1142 -0.1042)
OKLCHoklch(36.29% 0.155 317.6)
XYZxyz(7.7446, 4.0201, 15.9876)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1471 #287114
analogous
#2E1471 #5D1471 #711456
triadic
#5D1471 #715D14 #14715D
tetradic
#5D1471 #712E14 #287114 #145671
square
#5D1471 #712E14 #287114 #145671
split-complementary
#5D1471 #567114 #14712E
monochromatic
#15051A #320B3D #5D1471 #881DA5 #B227D9

Accessibility & contrast

On white

11.64
#5D1471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5D1471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1471
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1471#FFFFFF#000000##FFFFFF
##5D14711.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#173B6F
Tritanopia (blue-blind)
#5C2943
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d1471;
/* rgb */ color: rgb(93, 20, 113);
/* oklch */ color: oklch(36.3% 0.155 317.6);
Tailwind
colors: {
  custom: {
    50: '#8e5c9a',
    500: '#5d1471',
    950: '#000000',
  },
}
SCSS
$custom: #5d1471;
$custom-light: #8e5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1471",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 287.097,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3629,
    "c": 0.15457,
    "h": 317.6
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#5D1471
secondary
#51A739
accent
#ED3B61
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1471

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

Preview Lab → · Contrast checker → · Palette generator →

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