#5D176C#5D176C

#5D176C is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.147 H 319.8°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#5D176C
RGBrgb(93, 23, 108)
HSLhsl(289, 65%, 26%)
HSVhsv(289, 79%, 42%)
CMYKcmyk(13.9%, 78.7%, 0%, 57.6%)
CIE-LABlab(23.75, 43.39, -33.75)
CIE-LCHlch(23.75, 54.97, 322.12°)
OKLaboklab(36.18% 0.1121 -0.0947)
OKLCHoklch(36.18% 0.147 319.8)
XYZxyz(7.5270, 4.0230, 14.5645)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D176C #266C17
analogous
#32176C #5D176C #6C1750
triadic
#5D176C #6C5D17 #176C5D
tetradic
#5D176C #6C3217 #266C17 #17506C
square
#5D176C #6C3217 #266C17 #17506C
split-complementary
#5D176C #506C17 #176C32
monochromatic
#160519 #320C3A #5D176C #88229E #B42CD1

Accessibility & contrast

On white

11.64
#5D176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D176C
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D176C#FFFFFF#000000##FFFFFF
##5D176C1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#1F3B6A
Tritanopia (blue-blind)
#5D2840
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d176c;
/* rgb */ color: rgb(93, 23, 108);
/* oklch */ color: oklch(36.2% 0.147 319.8);
Tailwind
colors: {
  custom: {
    50: '#8e5d97',
    500: '#5d176c',
    950: '#000000',
  },
}
SCSS
$custom: #5d176c;
$custom-light: #8e5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5d176c",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 289.412,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36183,
    "c": 0.14674,
    "h": 319.8
  },
  "luminance": 0.04023
}

Semantic roles & 50–950 ramp

primary
#5D176C
secondary
#4FA23D
accent
#E8405E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5D176C

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

Preview Lab → · Contrast checker → · Palette generator →

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