#5A174C#5A174C

#5A174C is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.6% C 0.117 H 337.4°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#5A174C
RGBrgb(90, 23, 76)
HSLhsl(313, 59%, 22%)
HSVhsv(313, 74%, 35%)
CMYKcmyk(0%, 74.4%, 15.6%, 64.7%)
CIE-LABlab(21.24, 36.64, -16.55)
CIE-LCHlch(21.24, 40.20, 335.69°)
OKLaboklab(33.64% 0.1079 -0.0449)
OKLCHoklch(33.64% 0.117 337.4)
XYZxyz(5.8275, 3.3088, 7.1678)
Luminance0.0331 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A174C #175A25
analogous
#47175A #5A174C #5A172B
triadic
#5A174C #4C5A17 #174C5A
tetradic
#5A174C #5A4717 #175A25 #172B5A
square
#5A174C #5A4717 #175A25 #172B5A
split-complementary
#5A174C #2B5A17 #175A47
monochromatic
#180615 #290B23 #5A174C #8B2375 #BB309E

Accessibility & contrast

On white

12.64
#5A174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A174C
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A174C#FFFFFF#000000##FFFFFF
##5A174C1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192C4E
Deuteranopia (green-blind)
#2F374A
Tritanopia (blue-blind)
#5F1A2F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a174c;
/* rgb */ color: rgb(90, 23, 76);
/* oklch */ color: oklch(33.6% 0.117 337.4);
Tailwind
colors: {
  custom: {
    50: '#8b5b7e',
    500: '#5a174c',
    950: '#000000',
  },
}
SCSS
$custom: #5a174c;
$custom-light: #8b5b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a174c",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 312.537,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33644,
    "c": 0.11691,
    "h": 337.4
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#5A174C
secondary
#3C914E
accent
#E26645
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A174C

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

Preview Lab → · Contrast checker → · Palette generator →

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