#5C166F#5C166F

#5C166F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.150 H 317.8°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#5C166F
RGBrgb(92, 22, 111)
HSLhsl(287, 67%, 26%)
HSVhsv(287, 80%, 44%)
CMYKcmyk(17.1%, 80.2%, 0%, 56.5%)
CIE-LABlab(23.66, 44.16, -35.84)
CIE-LCHlch(23.66, 56.87, 320.94°)
OKLaboklab(36.16% 0.1114 -0.1008)
OKLCHoklch(36.16% 0.15 317.8)
XYZxyz(7.5694, 3.9972, 15.4087)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C166F #296F16
analogous
#2F166F #5C166F #6F1655
triadic
#5C166F #6F5C16 #166F5C
tetradic
#5C166F #6F2F16 #296F16 #16556F
square
#5C166F #6F2F16 #296F16 #16556F
split-complementary
#5C166F #556F16 #166F2F
monochromatic
#15051A #320C3C #5C166F #8620A2 #B12BD5

Accessibility & contrast

On white

11.67
#5C166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5C166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C166F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C166F#FFFFFF#000000##FFFFFF
##5C166F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#193A6D
Tritanopia (blue-blind)
#5B2942
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c166f;
/* rgb */ color: rgb(92, 22, 111);
/* oklch */ color: oklch(36.2% 0.150 317.8);
Tailwind
colors: {
  custom: {
    50: '#8e5c99',
    500: '#5c166f',
    950: '#000000',
  },
}
SCSS
$custom: #5c166f;
$custom-light: #8e5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#5c166f",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 287.191,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36156,
    "c": 0.15023,
    "h": 317.8
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#5C166F
secondary
#52A53C
accent
#EA3E63
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C166F

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

Preview Lab → · Contrast checker → · Palette generator →

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