#5D176A#5D176A

#5D176A is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.0% C 0.145 H 320.8°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#5D176A
RGBrgb(93, 23, 106)
HSLhsl(291, 64%, 25%)
HSVhsv(291, 78%, 42%)
CMYKcmyk(12.3%, 78.3%, 0%, 58.4%)
CIE-LABlab(23.61, 42.98, -32.68)
CIE-LCHlch(23.61, 54.00, 322.76°)
OKLaboklab(36.04% 0.1123 -0.0915)
OKLCHoklch(36.04% 0.145 320.8)
XYZxyz(7.4218, 3.9810, 14.0103)
Luminance0.0398 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D176A #246A17
analogous
#33176A #5D176A #6A174E
triadic
#5D176A #6A5D17 #176A5D
tetradic
#5D176A #6A3317 #246A17 #174E6A
square
#5D176A #6A3317 #246A17 #174E6A
split-complementary
#5D176A #4E6A17 #176A33
monochromatic
#160519 #310C38 #5D176A #89229C #B52DCF

Accessibility & contrast

On white

11.69
#5D176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5D176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D176A
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D176A#FFFFFF#000000##FFFFFF
##5D176A1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#203B68
Tritanopia (blue-blind)
#5E273F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d176a;
/* rgb */ color: rgb(93, 23, 106);
/* oklch */ color: oklch(36.0% 0.145 320.8);
Tailwind
colors: {
  custom: {
    50: '#8e5c95',
    500: '#5d176a',
    950: '#000000',
  },
}
SCSS
$custom: #5d176a;
$custom-light: #8e5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5d176a",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 290.602,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36039,
    "c": 0.14488,
    "h": 320.8
  },
  "luminance": 0.03981
}

Semantic roles & 50–950 ramp

primary
#5D176A
secondary
#4CA03D
accent
#E7405B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5D176A

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

Preview Lab → · Contrast checker → · Palette generator →

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