#5C174F#5C174F

#5C174F is a dark, vivid pink. Relative luminance 0.035; OKLCH L 34.2% C 0.121 H 336.5°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#5C174F
RGBrgb(92, 23, 79)
HSLhsl(311, 60%, 23%)
HSVhsv(311, 75%, 36%)
CMYKcmyk(0%, 75%, 14.1%, 63.9%)
CIE-LABlab(21.77, 37.71, -17.72)
CIE-LCHlch(21.77, 41.66, 334.83°)
OKLaboklab(34.16% 0.1107 -0.0482)
OKLCHoklch(34.16% 0.121 336.5)
XYZxyz(6.1314, 3.4532, 7.7392)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C174F #175C24
analogous
#46175C #5C174F #5C172D
triadic
#5C174F #4F5C17 #174F5C
tetradic
#5C174F #5C4617 #175C24 #172D5C
square
#5C174F #5C4617 #175C24 #172D5C
split-complementary
#5C174F #2D5C17 #175C46
monochromatic
#180615 #2B0B25 #5C174F #8D2379 #BE2FA3

Accessibility & contrast

On white

12.42
#5C174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5C174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C174F
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C174F#FFFFFF#000000##FFFFFF
##5C174F1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182D51
Deuteranopia (green-blind)
#2F384D
Tritanopia (blue-blind)
#611B31
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c174f;
/* rgb */ color: rgb(92, 23, 79);
/* oklch */ color: oklch(34.2% 0.121 336.5);
Tailwind
colors: {
  custom: {
    50: '#8d5b80',
    500: '#5c174f',
    950: '#000000',
  },
}
SCSS
$custom: #5c174f;
$custom-light: #8d5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#5c174f",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 311.304,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34155,
    "c": 0.12071,
    "h": 336.5
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#5C174F
secondary
#3C934C
accent
#E36345
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5C174F

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

Preview Lab → · Contrast checker → · Palette generator →

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