#5D1771#5D1771

#5D1771 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.151 H 317.4°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5D1771
RGBrgb(93, 23, 113)
HSLhsl(287, 66%, 27%)
HSVhsv(287, 80%, 44%)
CMYKcmyk(17.7%, 79.6%, 0%, 55.7%)
CIE-LABlab(24.10, 44.42, -36.41)
CIE-LCHlch(24.10, 57.44, 320.66°)
OKLaboklab(36.55% 0.1115 -0.1025)
OKLCHoklch(36.55% 0.151 317.4)
XYZxyz(7.8008, 4.1325, 16.0063)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1771 #2B7117
analogous
#301771 #5D1771 #711758
triadic
#5D1771 #715D17 #17715D
tetradic
#5D1771 #713017 #2B7117 #175871
square
#5D1771 #713017 #2B7117 #175871
split-complementary
#5D1771 #587117 #177130
monochromatic
#150519 #330D3E #5D1771 #8721A4 #AF2ED4

Accessibility & contrast

On white

11.50
#5D1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1771
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1771#FFFFFF#000000##FFFFFF
##5D17711.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#193B6F
Tritanopia (blue-blind)
#5C2B43
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d1771;
/* rgb */ color: rgb(93, 23, 113);
/* oklch */ color: oklch(36.5% 0.151 317.4);
Tailwind
colors: {
  custom: {
    50: '#8e5d9a',
    500: '#5d1771',
    950: '#000000',
  },
}
SCSS
$custom: #5d1771;
$custom-light: #8e5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1771",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 286.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3655,
    "c": 0.1514,
    "h": 317.4
  },
  "luminance": 0.04132
}

Semantic roles & 50–950 ramp

primary
#5D1771
secondary
#55A73D
accent
#E93F65
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1771

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

Preview Lab → · Contrast checker → · Palette generator →

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