#5A174D#5A174D

#5A174D is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.7% C 0.118 H 336.7°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#5A174D
RGBrgb(90, 23, 77)
HSLhsl(312, 59%, 22%)
HSVhsv(312, 74%, 35%)
CMYKcmyk(0%, 74.4%, 14.4%, 64.7%)
CIE-LABlab(21.29, 36.81, -17.14)
CIE-LCHlch(21.29, 40.61, 335.03°)
OKLaboklab(33.7% 0.1081 -0.0466)
OKLCHoklch(33.7% 0.118 336.7)
XYZxyz(5.8625, 3.3228, 7.3523)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A174D #175A24
analogous
#46175A #5A174D #5A172C
triadic
#5A174D #4D5A17 #174D5A
tetradic
#5A174D #5A4617 #175A24 #172C5A
square
#5A174D #5A4617 #175A24 #172C5A
split-complementary
#5A174D #2C5A17 #175A46
monochromatic
#180615 #290B23 #5A174D #8B2377 #BB30A0

Accessibility & contrast

On white

12.62
#5A174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A174D
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A174D#FFFFFF#000000##FFFFFF
##5A174D1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182D4F
Deuteranopia (green-blind)
#2F374B
Tritanopia (blue-blind)
#5F1B2F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a174d;
/* rgb */ color: rgb(90, 23, 77);
/* oklch */ color: oklch(33.7% 0.118 336.7);
Tailwind
colors: {
  custom: {
    50: '#8b5b7f',
    500: '#5a174d',
    950: '#000000',
  },
}
SCSS
$custom: #5a174d;
$custom-light: #8b5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a174d",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 311.642,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33699,
    "c": 0.11771,
    "h": 336.7
  },
  "luminance": 0.03322
}

Semantic roles & 50–950 ramp

primary
#5A174D
secondary
#3C914C
accent
#E26445
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A174D

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

Preview Lab → · Contrast checker → · Palette generator →

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