#5C166A#5C166A

#5C166A is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.146 H 320.3°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#5C166A
RGBrgb(92, 22, 106)
HSLhsl(290, 66%, 25%)
HSVhsv(290, 79%, 42%)
CMYKcmyk(13.2%, 79.2%, 0%, 58.4%)
CIE-LABlab(23.30, 43.13, -33.18)
CIE-LCHlch(23.30, 54.42, 322.44°)
OKLaboklab(35.79% 0.112 -0.093)
OKLCHoklch(35.79% 0.146 320.3)
XYZxyz(7.3017, 3.8901, 13.9991)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C166A #246A16
analogous
#32166A #5C166A #6A164E
triadic
#5C166A #6A5C16 #166A5C
tetradic
#5C166A #6A3216 #246A16 #164E6A
square
#5C166A #6A3216 #246A16 #164E6A
split-complementary
#5C166A #4E6A16 #166A32
monochromatic
#160519 #300B37 #5C166A #88219D #B42BCF

Accessibility & contrast

On white

11.81
#5C166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C166A
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C166A#FFFFFF#000000##FFFFFF
##5C166A1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#1F3A68
Tritanopia (blue-blind)
#5C273F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c166a;
/* rgb */ color: rgb(92, 22, 106);
/* oklch */ color: oklch(35.8% 0.146 320.3);
Tailwind
colors: {
  custom: {
    50: '#8d5c95',
    500: '#5c166a',
    950: '#000000',
  },
}
SCSS
$custom: #5c166a;
$custom-light: #8d5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5c166a",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 290,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3579,
    "c": 0.14559,
    "h": 320.3
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#5C166A
secondary
#4CA03B
accent
#E93F5B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C166A

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

Preview Lab → · Contrast checker → · Palette generator →

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