#5D176D#5D176D

#5D176D is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.148 H 319.3°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#5D176D
RGBrgb(93, 23, 109)
HSLhsl(289, 65%, 26%)
HSVhsv(289, 79%, 43%)
CMYKcmyk(14.7%, 78.9%, 0%, 57.3%)
CIE-LABlab(23.82, 43.60, -34.29)
CIE-LCHlch(23.82, 55.47, 321.81°)
OKLaboklab(36.25% 0.112 -0.0962)
OKLCHoklch(36.25% 0.148 319.3)
XYZxyz(7.5806, 4.0444, 14.8464)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D176D #276D17
analogous
#32176D #5D176D #6D1752
triadic
#5D176D #6D5D17 #176D5D
tetradic
#5D176D #6D3217 #276D17 #17526D
square
#5D176D #6D3217 #276D17 #17526D
split-complementary
#5D176D #526D17 #176D32
monochromatic
#160519 #320C3A #5D176D #8822A0 #B32CD2

Accessibility & contrast

On white

11.61
#5D176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5D176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D176D
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D176D#FFFFFF#000000##FFFFFF
##5D176D1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#1E3B6B
Tritanopia (blue-blind)
#5D2941
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d176d;
/* rgb */ color: rgb(93, 23, 109);
/* oklch */ color: oklch(36.3% 0.148 319.3);
Tailwind
colors: {
  custom: {
    50: '#8e5d97',
    500: '#5d176d',
    950: '#000000',
  },
}
SCSS
$custom: #5d176d;
$custom-light: #8e5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5d176d",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 288.837,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36255,
    "c": 0.14767,
    "h": 319.3
  },
  "luminance": 0.04044
}

Semantic roles & 50–950 ramp

primary
#5D176D
secondary
#50A33D
accent
#E8405F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5D176D

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

Preview Lab → · Contrast checker → · Palette generator →

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