#5D174C#5D174C

#5D174C is a dark, moderate pink. Relative luminance 0.035; OKLCH L 34.2% C 0.119 H 339.2°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#5D174C
RGBrgb(93, 23, 76)
HSLhsl(315, 60%, 23%)
HSVhsv(315, 75%, 36%)
CMYKcmyk(0%, 75.3%, 18.3%, 63.5%)
CIE-LABlab(21.81, 37.50, -15.62)
CIE-LCHlch(21.81, 40.62, 337.38°)
OKLaboklab(34.16% 0.1113 -0.0422)
OKLCHoklch(34.16% 0.119 339.2)
XYZxyz(6.1252, 3.4623, 7.1818)
Luminance0.0346 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D174C #175D28
analogous
#4B175D #5D174C #5D1729
triadic
#5D174C #4C5D17 #174C5D
tetradic
#5D174C #5D4B17 #175D28 #17295D
square
#5D174C #5D4B17 #175D28 #17295D
split-complementary
#5D174C #295D17 #175D4B
monochromatic
#190614 #2C0B24 #5D174C #8E2374 #BF2F9C

Accessibility & contrast

On white

12.41
#5D174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D174C
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D174C#FFFFFF#000000##FFFFFF
##5D174C1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d174c;
/* rgb */ color: rgb(93, 23, 76);
/* oklch */ color: oklch(34.2% 0.119 339.2);
Tailwind
colors: {
  custom: {
    50: '#8e5b7e',
    500: '#5d174c',
    950: '#000000',
  },
}
SCSS
$custom: #5d174c;
$custom-light: #8e5b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d174c",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 314.571,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34164,
    "c": 0.11907,
    "h": 339.2
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#5D174C
secondary
#3C9451
accent
#E36B44
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0D040A
muted
#7D797C

Preview Lab

Preview with #5D174C

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

Preview Lab → · Contrast checker → · Palette generator →

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