#5D1371#5D1371

#5D1371 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.156 H 317.7°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#5D1371
RGBrgb(93, 19, 113)
HSLhsl(287, 71%, 26%)
HSVhsv(287, 83%, 44%)
CMYKcmyk(17.7%, 83.2%, 0%, 55.7%)
CIE-LABlab(23.62, 45.81, -37.18)
CIE-LCHlch(23.62, 59.00, 320.94°)
OKLaboklab(36.21% 0.115 -0.1047)
OKLCHoklch(36.21% 0.156 317.7)
XYZxyz(7.7273, 3.9855, 15.9818)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1371 #277113
analogous
#2E1371 #5D1371 #711356
triadic
#5D1371 #715D13 #13715D
tetradic
#5D1371 #712E13 #277113 #135671
square
#5D1371 #712E13 #277113 #135671
split-complementary
#5D1371 #567113 #13712E
monochromatic
#16041A #320A3D #5D1371 #881CA5 #B325DA

Accessibility & contrast

On white

11.69
#5D1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1371
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1371#FFFFFF#000000##FFFFFF
##5D13711.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#163A6F
Tritanopia (blue-blind)
#5C2942
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d1371;
/* rgb */ color: rgb(93, 19, 113);
/* oklch */ color: oklch(36.2% 0.156 317.7);
Tailwind
colors: {
  custom: {
    50: '#8e5b9a',
    500: '#5d1371',
    950: '#000000',
  },
}
SCSS
$custom: #5d1371;
$custom-light: #8e5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1371",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 287.234,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3621,
    "c": 0.15556,
    "h": 317.7
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#5D1371
secondary
#50A838
accent
#EE3A60
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1371

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

Preview Lab → · Contrast checker → · Palette generator →

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