#5C166D#5C166D

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

Color values

HEX#5C166D
RGBrgb(92, 22, 109)
HSLhsl(288, 66%, 26%)
HSVhsv(288, 80%, 43%)
CMYKcmyk(15.6%, 79.8%, 0%, 57.3%)
CIE-LABlab(23.52, 43.75, -34.78)
CIE-LCHlch(23.52, 55.89, 321.51°)
OKLaboklab(36.01% 0.1116 -0.0977)
OKLCHoklch(36.01% 0.148 318.8)
XYZxyz(7.4605, 3.9536, 14.8352)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C166D #276D16
analogous
#30166D #5C166D #6D1652
triadic
#5C166D #6D5C16 #166D5C
tetradic
#5C166D #6D3016 #276D16 #16526D
square
#5C166D #6D3016 #276D16 #16526D
split-complementary
#5C166D #526D16 #166D30
monochromatic
#150519 #310C3A #5C166D #8720A0 #B22BD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C166D#FFFFFF#000000##FFFFFF
##5C166D1.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)
#00346F
Deuteranopia (green-blind)
#1C3A6B
Tritanopia (blue-blind)
#5C2841
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c166d;
/* rgb */ color: rgb(92, 22, 109);
/* oklch */ color: oklch(36.0% 0.148 318.8);
Tailwind
colors: {
  custom: {
    50: '#8d5c97',
    500: '#5c166d',
    950: '#000000',
  },
}
SCSS
$custom: #5c166d;
$custom-light: #8d5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5c166d",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 288.276,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36008,
    "c": 0.14837,
    "h": 318.8
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#5C166D
secondary
#50A33C
accent
#E93E60
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C166D

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

Preview Lab → · Contrast checker → · Palette generator →

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