#5C176A#5C176A

#5C176A is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.144 H 320.2°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#5C176A
RGBrgb(92, 23, 106)
HSLhsl(290, 64%, 25%)
HSVhsv(290, 78%, 42%)
CMYKcmyk(13.2%, 78.3%, 0%, 58.4%)
CIE-LABlab(23.44, 42.76, -32.97)
CIE-LCHlch(23.44, 53.99, 322.37°)
OKLaboklab(35.88% 0.111 -0.0924)
OKLCHoklch(35.88% 0.144 320.2)
XYZxyz(7.3212, 3.9291, 14.0056)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C176A #256A17
analogous
#33176A #5C176A #6A174E
triadic
#5C176A #6A5C17 #176A5C
tetradic
#5C176A #6A3317 #256A17 #174E6A
square
#5C176A #6A3317 #256A17 #174E6A
split-complementary
#5C176A #4E6A17 #176A33
monochromatic
#160519 #300C38 #5C176A #88229C #B32DCF

Accessibility & contrast

On white

11.76
#5C176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5C176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C176A
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C176A#FFFFFF#000000##FFFFFF
##5C176A1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#1F3A68
Tritanopia (blue-blind)
#5C283F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c176a;
/* rgb */ color: rgb(92, 23, 106);
/* oklch */ color: oklch(35.9% 0.144 320.2);
Tailwind
colors: {
  custom: {
    50: '#8d5c95',
    500: '#5c176a',
    950: '#000000',
  },
}
SCSS
$custom: #5c176a;
$custom-light: #8d5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5c176a",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 289.88,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35882,
    "c": 0.14443,
    "h": 320.2
  },
  "luminance": 0.03929
}

Semantic roles & 50–950 ramp

primary
#5C176A
secondary
#4DA03D
accent
#E7405D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C176A

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

Preview Lab → · Contrast checker → · Palette generator →

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