#5D1871#5D1871

#5D1871 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.150 H 317.3°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#5D1871
RGBrgb(93, 24, 113)
HSLhsl(287, 65%, 27%)
HSVhsv(287, 79%, 44%)
CMYKcmyk(17.7%, 78.8%, 0%, 55.7%)
CIE-LABlab(24.24, 44.05, -36.20)
CIE-LCHlch(24.24, 57.01, 320.59°)
OKLaboklab(36.64% 0.1105 -0.1018)
OKLCHoklch(36.64% 0.15 317.3)
XYZxyz(7.8210, 4.1730, 16.0131)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1871 #2C7118
analogous
#311871 #5D1871 #711859
triadic
#5D1871 #715D18 #18715D
tetradic
#5D1871 #713118 #2C7118 #185971
square
#5D1871 #713118 #2C7118 #185971
split-complementary
#5D1871 #597118 #187131
monochromatic
#150519 #330D3F #5D1871 #8723A3 #AF30D3

Accessibility & contrast

On white

11.45
#5D1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1871
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1871#FFFFFF#000000##FFFFFF
##5D18711.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#1A3C6F
Tritanopia (blue-blind)
#5C2B44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1871;
/* rgb */ color: rgb(93, 24, 113);
/* oklch */ color: oklch(36.6% 0.150 317.3);
Tailwind
colors: {
  custom: {
    50: '#8e5d9a',
    500: '#5d1871',
    950: '#000000',
  },
}
SCSS
$custom: #5d1871;
$custom-light: #8e5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1871",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 286.517,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36642,
    "c": 0.15028,
    "h": 317.3
  },
  "luminance": 0.04173
}

Semantic roles & 50–950 ramp

primary
#5D1871
secondary
#56A63E
accent
#E84066
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1871

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

Preview Lab → · Contrast checker → · Palette generator →

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