#5A173B#5A173B

#5A173B is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.8% C 0.105 H 351.4°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#5A173B
RGBrgb(90, 23, 59)
HSLhsl(328, 59%, 22%)
HSVhsv(328, 74%, 35%)
CMYKcmyk(0%, 74.4%, 34.4%, 64.7%)
CIE-LABlab(20.45, 34.06, -6.08)
CIE-LCHlch(20.45, 34.59, 349.88°)
OKLaboklab(32.81% 0.104 -0.0157)
OKLCHoklch(32.81% 0.105 351.4)
XYZxyz(5.3125, 3.1028, 4.4560)
Luminance0.0310 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A173B #175A36
analogous
#58175A #5A173B #5A171A
triadic
#5A173B #3B5A17 #173B5A
tetradic
#5A173B #5A5817 #175A36 #171A5A
square
#5A173B #5A5817 #175A36 #171A5A
split-complementary
#5A173B #1A5A17 #175A58
monochromatic
#180610 #290B1B #5A173B #8B235B #BB307B

Accessibility & contrast

On white

12.96
#5A173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5A173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A173B
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A173B#FFFFFF#000000##FFFFFF
##5A173B1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222A3C
Deuteranopia (green-blind)
#343639
Tritanopia (blue-blind)
#611326
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a173b;
/* rgb */ color: rgb(90, 23, 59);
/* oklch */ color: oklch(32.8% 0.105 351.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a70',
    500: '#5a173b',
    950: '#000000',
  },
}
SCSS
$custom: #5a173b;
$custom-light: #8c5a70;
$custom-dark: #000000;
JSON
{
  "hex": "#5a173b",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 327.761,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32809,
    "c": 0.10516,
    "h": 351.4
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#5A173B
secondary
#3C9163
accent
#E28E45
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0407
muted
#7D797A

Preview Lab

Preview with #5A173B

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

Preview Lab → · Contrast checker → · Palette generator →

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