#5C165A#5C165A

#5C165A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.131 H 329.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#5C165A
RGBrgb(92, 22, 90)
HSLhsl(302, 61%, 22%)
HSVhsv(302, 76%, 36%)
CMYKcmyk(0%, 76.1%, 2.2%, 63.9%)
CIE-LABlab(22.26, 40.04, -24.33)
CIE-LCHlch(22.26, 46.85, 328.72°)
OKLaboklab(34.71% 0.1127 -0.0672)
OKLCHoklch(34.71% 0.131 329.2)
XYZxyz(6.5460, 3.5878, 10.0186)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C165A #165C18
analogous
#3B165C #5C165A #5C1637
triadic
#5C165A #5A5C16 #165A5C
tetradic
#5C165A #5C3B16 #165C18 #16375C
square
#5C165A #5C3B16 #165C18 #16375C
split-complementary
#5C165A #375C16 #165C3B
monochromatic
#190618 #2B0A2A #5C165A #8D228A #BF2EBB

Accessibility & contrast

On white

12.23
#5C165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5C165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C165A
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C165A#FFFFFF#000000##FFFFFF
##5C165A1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2F5C
Deuteranopia (green-blind)
#2A3858
Tritanopia (blue-blind)
#5F2036
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c165a;
/* rgb */ color: rgb(92, 22, 90);
/* oklch */ color: oklch(34.7% 0.131 329.2);
Tailwind
colors: {
  custom: {
    50: '#8d5b89',
    500: '#5c165a',
    950: '#000000',
  },
}
SCSS
$custom: #5c165a;
$custom-light: #8d5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#5c165a",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 301.714,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34707,
    "c": 0.13122,
    "h": 329.2
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#5C165A
secondary
#3B933D
accent
#E54843
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C165A

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

Preview Lab → · Contrast checker → · Palette generator →

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