#5C165B#5C165B

#5C165B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.132 H 328.6°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#5C165B
RGBrgb(92, 22, 91)
HSLhsl(301, 61%, 22%)
HSVhsv(301, 76%, 36%)
CMYKcmyk(0%, 76.1%, 1.1%, 63.9%)
CIE-LABlab(22.32, 40.23, -24.90)
CIE-LCHlch(22.32, 47.31, 328.25°)
OKLaboklab(34.77% 0.1127 -0.0689)
OKLCHoklch(34.77% 0.132 328.6)
XYZxyz(6.5888, 3.6049, 10.2443)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C165B #165C17
analogous
#3A165C #5C165B #5C1638
triadic
#5C165B #5B5C16 #165B5C
tetradic
#5C165B #5C3A16 #165C17 #16385C
square
#5C165B #5C3A16 #165C17 #16385C
split-complementary
#5C165B #385C16 #165C3A
monochromatic
#190618 #2B0A2A #5C165B #8D228C #BF2EBD

Accessibility & contrast

On white

12.20
#5C165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C165B
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C165B#FFFFFF#000000##FFFFFF
##5C165B1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2F5D
Deuteranopia (green-blind)
#293959
Tritanopia (blue-blind)
#5F2037
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c165b;
/* rgb */ color: rgb(92, 22, 91);
/* oklch */ color: oklch(34.8% 0.132 328.6);
Tailwind
colors: {
  custom: {
    50: '#8d5b8a',
    500: '#5c165b',
    950: '#000000',
  },
}
SCSS
$custom: #5c165b;
$custom-light: #8d5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c165b",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 300.857,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34771,
    "c": 0.13209,
    "h": 328.6
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#5C165B
secondary
#3B933C
accent
#E54643
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C165B

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

Preview Lab → · Contrast checker → · Palette generator →

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