#5C176D#5C176D

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

Color values

HEX#5C176D
RGBrgb(92, 23, 109)
HSLhsl(288, 65%, 26%)
HSVhsv(288, 79%, 43%)
CMYKcmyk(15.6%, 78.9%, 0%, 57.3%)
CIE-LABlab(23.65, 43.38, -34.57)
CIE-LCHlch(23.65, 55.47, 321.44°)
OKLaboklab(36.1% 0.1107 -0.0971)
OKLCHoklch(36.1% 0.147 318.7)
XYZxyz(7.4800, 3.9926, 14.8417)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C176D #286D17
analogous
#31176D #5C176D #6D1753
triadic
#5C176D #6D5C17 #176D5C
tetradic
#5C176D #6D3117 #286D17 #17536D
square
#5C176D #6D3117 #286D17 #17536D
split-complementary
#5C176D #536D17 #176D31
monochromatic
#150519 #310C3A #5C176D #8722A0 #B12CD2

Accessibility & contrast

On white

11.68
#5C176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C176D
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C176D#FFFFFF#000000##FFFFFF
##5C176D1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#1C3A6B
Tritanopia (blue-blind)
#5C2941
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c176d;
/* rgb */ color: rgb(92, 23, 109);
/* oklch */ color: oklch(36.1% 0.147 318.7);
Tailwind
colors: {
  custom: {
    50: '#8d5c97',
    500: '#5c176d',
    950: '#000000',
  },
}
SCSS
$custom: #5c176d;
$custom-light: #8d5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5c176d",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 288.14,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.361,
    "c": 0.14724,
    "h": 318.7
  },
  "luminance": 0.03992
}

Semantic roles & 50–950 ramp

primary
#5C176D
secondary
#51A33D
accent
#E84061
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C176D

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

Preview Lab → · Contrast checker → · Palette generator →

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