#5C175B#5C175B

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

Color values

HEX#5C175B
RGBrgb(92, 23, 91)
HSLhsl(301, 60%, 23%)
HSVhsv(301, 75%, 36%)
CMYKcmyk(0%, 75%, 1.1%, 63.9%)
CIE-LABlab(22.46, 39.83, -24.68)
CIE-LCHlch(22.46, 46.86, 328.22°)
OKLaboklab(34.87% 0.1116 -0.0682)
OKLCHoklch(34.87% 0.131 328.6)
XYZxyz(6.6083, 3.6439, 10.2508)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C175B #175C18
analogous
#3B175C #5C175B #5C1738
triadic
#5C175B #5B5C17 #175B5C
tetradic
#5C175B #5C3B17 #175C18 #17385C
square
#5C175B #5C3B17 #175C18 #17385C
split-complementary
#5C175B #385C17 #175C3B
monochromatic
#180618 #2B0B2B #5C175B #8D238B #BE2FBC

Accessibility & contrast

On white

12.15
#5C175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C175B
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C175B#FFFFFF#000000##FFFFFF
##5C175B1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D305D
Deuteranopia (green-blind)
#2A3959
Tritanopia (blue-blind)
#5F2137
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c175b;
/* rgb */ color: rgb(92, 23, 91);
/* oklch */ color: oklch(34.9% 0.131 328.6);
Tailwind
colors: {
  custom: {
    50: '#8d5c8a',
    500: '#5c175b',
    950: '#000000',
  },
}
SCSS
$custom: #5c175b;
$custom-light: #8d5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c175b",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 300.87,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34869,
    "c": 0.13082,
    "h": 328.6
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#5C175B
secondary
#3C933D
accent
#E34745
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C175B

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

Preview Lab → · Contrast checker → · Palette generator →

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