#5D1971#5D1971

#5D1971 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.149 H 317.2°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#5D1971
RGBrgb(93, 25, 113)
HSLhsl(286, 64%, 27%)
HSVhsv(286, 78%, 44%)
CMYKcmyk(17.7%, 77.9%, 0%, 55.7%)
CIE-LABlab(24.37, 43.66, -35.98)
CIE-LCHlch(24.37, 56.58, 320.51°)
OKLaboklab(36.74% 0.1095 -0.1012)
OKLCHoklch(36.74% 0.149 317.2)
XYZxyz(7.8420, 4.2150, 16.0201)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1971 #2D7119
analogous
#311971 #5D1971 #711959
triadic
#5D1971 #715D19 #19715D
tetradic
#5D1971 #713119 #2D7119 #195971
square
#5D1971 #713119 #2D7119 #195971
split-complementary
#5D1971 #597119 #197131
monochromatic
#150619 #340E3F #5D1971 #8624A3 #AE33D2

Accessibility & contrast

On white

11.39
#5D1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5D1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1971
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1971#FFFFFF#000000##FFFFFF
##5D19711.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#1B3C6F
Tritanopia (blue-blind)
#5C2C44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1971;
/* rgb */ color: rgb(93, 25, 113);
/* oklch */ color: oklch(36.7% 0.149 317.2);
Tailwind
colors: {
  custom: {
    50: '#8e5e9a',
    500: '#5d1971',
    950: '#000000',
  },
}
SCSS
$custom: #5d1971;
$custom-light: #8e5e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1971",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 286.364,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36737,
    "c": 0.14912,
    "h": 317.2
  },
  "luminance": 0.04215
}

Semantic roles & 50–950 ramp

primary
#5D1971
secondary
#57A640
accent
#E74167
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1971

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

Preview Lab → · Contrast checker → · Palette generator →

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