#5C166B#5C166B

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

Color values

HEX#5C166B
RGBrgb(92, 22, 107)
HSLhsl(289, 66%, 25%)
HSVhsv(289, 79%, 42%)
CMYKcmyk(14%, 79.4%, 0%, 58%)
CIE-LABlab(23.38, 43.34, -33.71)
CIE-LCHlch(23.38, 54.91, 322.12°)
OKLaboklab(35.86% 0.1119 -0.0946)
OKLCHoklch(35.86% 0.147 319.8)
XYZxyz(7.3540, 3.9110, 14.2746)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C166B #256B16
analogous
#32166B #5C166B #6B164F
triadic
#5C166B #6B5C16 #166B5C
tetradic
#5C166B #6B3216 #256B16 #164F6B
square
#5C166B #6B3216 #256B16 #164F6B
split-complementary
#5C166B #4F6B16 #166B32
monochromatic
#160519 #300C38 #5C166B #88209E #B32BD1

Accessibility & contrast

On white

11.78
#5C166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5C166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C166B
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C166B#FFFFFF#000000##FFFFFF
##5C166B1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.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: #5c166b;
/* rgb */ color: rgb(92, 22, 107);
/* oklch */ color: oklch(35.9% 0.147 319.8);
Tailwind
colors: {
  custom: {
    50: '#8d5c96',
    500: '#5c166b',
    950: '#000000',
  },
}
SCSS
$custom: #5c166b;
$custom-light: #8d5c96;
$custom-dark: #000000;
JSON
{
  "hex": "#5c166b",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 289.412,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35862,
    "c": 0.14651,
    "h": 319.8
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#5C166B
secondary
#4DA13B
accent
#E93F5D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C166B

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

Preview Lab → · Contrast checker → · Palette generator →

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