#5C174C#5C174C

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

Color values

HEX#5C174C
RGBrgb(92, 23, 76)
HSLhsl(314, 60%, 23%)
HSVhsv(314, 75%, 36%)
CMYKcmyk(0%, 75%, 17.4%, 63.9%)
CIE-LABlab(21.62, 37.21, -15.93)
CIE-LCHlch(21.62, 40.48, 336.82°)
OKLaboklab(33.99% 0.1102 -0.0431)
OKLCHoklch(33.99% 0.118 338.6)
XYZxyz(6.0247, 3.4105, 7.1771)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C174C #175C27
analogous
#49175C #5C174C #5C172A
triadic
#5C174C #4C5C17 #174C5C
tetradic
#5C174C #5C4917 #175C27 #172A5C
square
#5C174C #5C4917 #175C27 #172A5C
split-complementary
#5C174C #2A5C17 #175C49
monochromatic
#180614 #2B0B24 #5C174C #8D2374 #BE2F9D

Accessibility & contrast

On white

12.49
#5C174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C174C
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C174C#FFFFFF#000000##FFFFFF
##5C174C1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4E
Deuteranopia (green-blind)
#31384A
Tritanopia (blue-blind)
#611A2F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c174c;
/* rgb */ color: rgb(92, 23, 76);
/* oklch */ color: oklch(34.0% 0.118 338.6);
Tailwind
colors: {
  custom: {
    50: '#8d5b7e',
    500: '#5c174c',
    950: '#000000',
  },
}
SCSS
$custom: #5c174c;
$custom-light: #8d5b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#5c174c",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 313.913,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3399,
    "c": 0.11835,
    "h": 338.6
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#5C174C
secondary
#3C9350
accent
#E36945
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5C174C

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

Preview Lab → · Contrast checker → · Palette generator →

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