#5C174D#5C174D

#5C174D is a dark, moderate pink. Relative luminance 0.034; OKLCH L 34.0% C 0.119 H 337.9°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#5C174D
RGBrgb(92, 23, 77)
HSLhsl(313, 60%, 23%)
HSVhsv(313, 75%, 36%)
CMYKcmyk(0%, 75%, 16.3%, 63.9%)
CIE-LABlab(21.67, 37.38, -16.53)
CIE-LCHlch(21.67, 40.87, 336.14°)
OKLaboklab(34.04% 0.1104 -0.0448)
OKLCHoklch(34.04% 0.119 337.9)
XYZxyz(6.0597, 3.4245, 7.3616)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C174D #175C26
analogous
#48175C #5C174D #5C172B
triadic
#5C174D #4D5C17 #174D5C
tetradic
#5C174D #5C4817 #175C26 #172B5C
square
#5C174D #5C4817 #175C26 #172B5C
split-complementary
#5C174D #2B5C17 #175C48
monochromatic
#180614 #2B0B24 #5C174D #8D2376 #BE2F9F

Accessibility & contrast

On white

12.46
#5C174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5C174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C174D
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C174D#FFFFFF#000000##FFFFFF
##5C174D1.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4F
Deuteranopia (green-blind)
#30384B
Tritanopia (blue-blind)
#611A2F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c174d;
/* rgb */ color: rgb(92, 23, 77);
/* oklch */ color: oklch(34.0% 0.119 337.9);
Tailwind
colors: {
  custom: {
    50: '#8d5b7f',
    500: '#5c174d',
    950: '#000000',
  },
}
SCSS
$custom: #5c174d;
$custom-light: #8d5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5c174d",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 313.043,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34045,
    "c": 0.11912,
    "h": 337.9
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

primary
#5C174D
secondary
#3C934F
accent
#E36745
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5C174D

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

Preview Lab → · Contrast checker → · Palette generator →

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