#5C1166#5C1166

#5C1166 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.1% C 0.147 H 322.6°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#5C1166
RGBrgb(92, 17, 102)
HSLhsl(293, 71%, 23%)
HSVhsv(293, 83%, 40%)
CMYKcmyk(9.8%, 83.3%, 0%, 60%)
CIE-LABlab(22.43, 44.06, -31.97)
CIE-LCHlch(22.43, 54.44, 324.03°)
OKLaboklab(35.08% 0.117 -0.0895)
OKLCHoklch(35.08% 0.147 322.6)
XYZxyz(7.0121, 3.6359, 12.9003)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1166 #1B6611
analogous
#311166 #5C1166 #661145
triadic
#5C1166 #665C11 #11665C
tetradic
#5C1166 #663111 #1B6611 #114566
square
#5C1166 #663111 #1B6611 #114566
split-complementary
#5C1166 #456611 #116631
monochromatic
#18041A #2D0832 #5C1166 #8B1A9A #BB22CF

Accessibility & contrast

On white

12.16
#5C1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5C1166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1166
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1166#FFFFFF#000000##FFFFFF
##5C11661.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#1F3864
Tritanopia (blue-blind)
#5D233C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c1166;
/* rgb */ color: rgb(92, 17, 102);
/* oklch */ color: oklch(35.1% 0.147 322.6);
Tailwind
colors: {
  custom: {
    50: '#8d5a92',
    500: '#5c1166',
    950: '#000000',
  },
}
SCSS
$custom: #5c1166;
$custom-light: #8d5a92;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1166",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 292.941,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.3508,
    "c": 0.14731,
    "h": 322.6
  },
  "luminance": 0.03636
}

Semantic roles & 50–950 ramp

primary
#5C1166
secondary
#419E35
accent
#EE3A4F
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C1166

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

Preview Lab → · Contrast checker → · Palette generator →

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