#5C176B#5C176B

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

Color values

HEX#5C176B
RGBrgb(92, 23, 107)
HSLhsl(289, 65%, 25%)
HSVhsv(289, 79%, 42%)
CMYKcmyk(14%, 78.5%, 0%, 58%)
CIE-LABlab(23.51, 42.96, -33.50)
CIE-LCHlch(23.51, 54.48, 322.05°)
OKLaboklab(35.95% 0.1109 -0.094)
OKLCHoklch(35.95% 0.145 319.7)
XYZxyz(7.3735, 3.9500, 14.2811)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C176B #266B17
analogous
#32176B #5C176B #6B1750
triadic
#5C176B #6B5C17 #176B5C
tetradic
#5C176B #6B3217 #266B17 #17506B
square
#5C176B #6B3217 #266B17 #17506B
split-complementary
#5C176B #506B17 #176B32
monochromatic
#160519 #310C39 #5C176B #87229D #B32DD0

Accessibility & contrast

On white

11.73
#5C176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C176B
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C176B#FFFFFF#000000##FFFFFF
##5C176B1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#1E3A69
Tritanopia (blue-blind)
#5C2840
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c176b;
/* rgb */ color: rgb(92, 23, 107);
/* oklch */ color: oklch(36.0% 0.145 319.7);
Tailwind
colors: {
  custom: {
    50: '#8d5c96',
    500: '#5c176b',
    950: '#000000',
  },
}
SCSS
$custom: #5c176b;
$custom-light: #8d5c96;
$custom-dark: #000000;
JSON
{
  "hex": "#5c176b",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 289.286,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35954,
    "c": 0.14537,
    "h": 319.7
  },
  "luminance": 0.0395
}

Semantic roles & 50–950 ramp

primary
#5C176B
secondary
#4FA13D
accent
#E8405E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C176B

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

Preview Lab → · Contrast checker → · Palette generator →

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