#5C165E#5C165E

#5C165E is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.135 H 326.8°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#5C165E
RGBrgb(92, 22, 94)
HSLhsl(298, 62%, 23%)
HSVhsv(298, 77%, 37%)
CMYKcmyk(2.1%, 76.6%, 0%, 63.1%)
CIE-LABlab(22.51, 40.79, -26.59)
CIE-LCHlch(22.51, 48.69, 326.90°)
OKLaboklab(34.96% 0.1127 -0.0738)
OKLCHoklch(34.96% 0.135 326.8)
XYZxyz(6.7208, 3.6577, 10.9395)
Luminance0.0366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C165E #185E16
analogous
#38165E #5C165E #5E163C
triadic
#5C165E #5E5C16 #165E5C
tetradic
#5C165E #5E3816 #185E16 #163C5E
square
#5C165E #5E3816 #185E16 #163C5E
split-complementary
#5C165E #3C5E16 #165E38
monochromatic
#180619 #2B0A2C #5C165E #8D2290 #BD2DC1

Accessibility & contrast

On white

12.13
#5C165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C165E
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C165E#FFFFFF#000000##FFFFFF
##5C165E1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063060
Deuteranopia (green-blind)
#27395C
Tritanopia (blue-blind)
#5F2138
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c165e;
/* rgb */ color: rgb(92, 22, 94);
/* oklch */ color: oklch(35.0% 0.135 326.8);
Tailwind
colors: {
  custom: {
    50: '#8d5b8c',
    500: '#5c165e',
    950: '#000000',
  },
}
SCSS
$custom: #5c165e;
$custom-light: #8d5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c165e",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 298.333,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34964,
    "c": 0.13472,
    "h": 326.8
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#5C165E
secondary
#3D953B
accent
#E54347
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C165E

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

Preview Lab → · Contrast checker → · Palette generator →

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