#5C166C#5C166C

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

Color values

HEX#5C166C
RGBrgb(92, 22, 108)
HSLhsl(289, 66%, 25%)
HSVhsv(289, 80%, 42%)
CMYKcmyk(14.8%, 79.6%, 0%, 57.6%)
CIE-LABlab(23.45, 43.54, -34.25)
CIE-LCHlch(23.45, 55.40, 321.81°)
OKLaboklab(35.94% 0.1118 -0.0962)
OKLCHoklch(35.94% 0.147 319.3)
XYZxyz(7.4070, 3.9322, 14.5533)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C166C #266C16
analogous
#31166C #5C166C #6C1651
triadic
#5C166C #6C5C16 #166C5C
tetradic
#5C166C #6C3116 #266C16 #16516C
square
#5C166C #6C3116 #266C16 #16516C
split-complementary
#5C166C #516C16 #166C31
monochromatic
#160519 #310C39 #5C166C #87209F #B32BD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C166C#FFFFFF#000000##FFFFFF
##5C166C1.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)
#00336E
Deuteranopia (green-blind)
#1D3A6A
Tritanopia (blue-blind)
#5C2840
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c166c;
/* rgb */ color: rgb(92, 22, 108);
/* oklch */ color: oklch(35.9% 0.147 319.3);
Tailwind
colors: {
  custom: {
    50: '#8d5c97',
    500: '#5c166c',
    950: '#000000',
  },
}
SCSS
$custom: #5c166c;
$custom-light: #8d5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5c166c",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 288.837,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35935,
    "c": 0.14744,
    "h": 319.3
  },
  "luminance": 0.03932
}

Semantic roles & 50–950 ramp

primary
#5C166C
secondary
#4FA23C
accent
#E93F5E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C166C

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

Preview Lab → · Contrast checker → · Palette generator →

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