#5C176C#5C176C

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

Color values

HEX#5C176C
RGBrgb(92, 23, 108)
HSLhsl(289, 65%, 26%)
HSVhsv(289, 79%, 42%)
CMYKcmyk(14.8%, 78.7%, 0%, 57.6%)
CIE-LABlab(23.58, 43.17, -34.04)
CIE-LCHlch(23.58, 54.97, 321.74°)
OKLaboklab(36.03% 0.1108 -0.0955)
OKLCHoklch(36.03% 0.146 319.2)
XYZxyz(7.4264, 3.9712, 14.5598)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C176C #276C17
analogous
#31176C #5C176C #6C1751
triadic
#5C176C #6C5C17 #176C5C
tetradic
#5C176C #6C3117 #276C17 #17516C
square
#5C176C #6C3117 #276C17 #17516C
split-complementary
#5C176C #516C17 #176C31
monochromatic
#150519 #310C3A #5C176C #87229E #B22CD1

Accessibility & contrast

On white

11.70
#5C176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C176C
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C176C#FFFFFF#000000##FFFFFF
##5C176C1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c176c;
/* rgb */ color: rgb(92, 23, 108);
/* oklch */ color: oklch(36.0% 0.146 319.2);
Tailwind
colors: {
  custom: {
    50: '#8d5c97',
    500: '#5c176c',
    950: '#000000',
  },
}
SCSS
$custom: #5c176c;
$custom-light: #8d5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5c176c",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 288.706,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36027,
    "c": 0.1463,
    "h": 319.2
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

primary
#5C176C
secondary
#50A23D
accent
#E84060
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C176C

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

Preview Lab → · Contrast checker → · Palette generator →

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