#5D1671#5D1671

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

Color values

HEX#5D1671
RGBrgb(93, 22, 113)
HSLhsl(287, 67%, 26%)
HSVhsv(287, 81%, 44%)
CMYKcmyk(17.7%, 80.5%, 0%, 55.7%)
CIE-LABlab(23.98, 44.79, -36.61)
CIE-LCHlch(23.98, 57.85, 320.74°)
OKLaboklab(36.46% 0.1124 -0.103)
OKLCHoklch(36.46% 0.152 317.5)
XYZxyz(7.7813, 4.0936, 15.9998)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1671 #2A7116
analogous
#301671 #5D1671 #711658
triadic
#5D1671 #715D16 #16715D
tetradic
#5D1671 #713016 #2A7116 #165871
square
#5D1671 #713016 #2A7116 #165871
split-complementary
#5D1671 #587116 #167130
monochromatic
#15051A #330C3E #5D1671 #8720A4 #B02CD6

Accessibility & contrast

On white

11.55
#5D1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5D1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1671
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1671#FFFFFF#000000##FFFFFF
##5D16711.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1671;
/* rgb */ color: rgb(93, 22, 113);
/* oklch */ color: oklch(36.5% 0.152 317.5);
Tailwind
colors: {
  custom: {
    50: '#8e5c9a',
    500: '#5d1671',
    950: '#000000',
  },
}
SCSS
$custom: #5d1671;
$custom-light: #8e5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1671",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 286.813,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3646,
    "c": 0.15249,
    "h": 317.5
  },
  "luminance": 0.04093
}

Semantic roles & 50–950 ramp

primary
#5D1671
secondary
#53A73C
accent
#EA3E63
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1671

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

Preview Lab → · Contrast checker → · Palette generator →

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