#5C166E#5C166E

#5C166E is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.149 H 318.3°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#5C166E
RGBrgb(92, 22, 110)
HSLhsl(288, 67%, 26%)
HSVhsv(288, 80%, 43%)
CMYKcmyk(16.4%, 80%, 0%, 56.9%)
CIE-LABlab(23.59, 43.95, -35.31)
CIE-LCHlch(23.59, 56.38, 321.22°)
OKLaboklab(36.08% 0.1115 -0.0993)
OKLCHoklch(36.08% 0.149 318.3)
XYZxyz(7.5146, 3.9753, 15.1203)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C166E #286E16
analogous
#30166E #5C166E #6E1654
triadic
#5C166E #6E5C16 #166E5C
tetradic
#5C166E #6E3016 #286E16 #16546E
square
#5C166E #6E3016 #286E16 #16546E
split-complementary
#5C166E #546E16 #166E30
monochromatic
#15051A #310C3B #5C166E #8720A1 #B12AD4

Accessibility & contrast

On white

11.70
#5C166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C166E
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C166E#FFFFFF#000000##FFFFFF
##5C166E1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#1B3A6C
Tritanopia (blue-blind)
#5C2941
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c166e;
/* rgb */ color: rgb(92, 22, 110);
/* oklch */ color: oklch(36.1% 0.149 318.3);
Tailwind
colors: {
  custom: {
    50: '#8d5c98',
    500: '#5c166e',
    950: '#000000',
  },
}
SCSS
$custom: #5c166e;
$custom-light: #8d5c98;
$custom-dark: #000000;
JSON
{
  "hex": "#5c166e",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 287.727,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36082,
    "c": 0.1493,
    "h": 318.3
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

primary
#5C166E
secondary
#51A43C
accent
#EA3E61
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5C166E

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

Preview Lab → · Contrast checker → · Palette generator →

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