#5A173A#5A173A

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

Color values

HEX#5A173A
RGBrgb(90, 23, 58)
HSLhsl(329, 59%, 22%)
HSVhsv(329, 74%, 35%)
CMYKcmyk(0%, 74.4%, 35.6%, 64.7%)
CIE-LABlab(20.41, 33.92, -5.44)
CIE-LCHlch(20.41, 34.36, 350.89°)
OKLaboklab(32.77% 0.1037 -0.014)
OKLCHoklch(32.77% 0.105 352.3)
XYZxyz(5.2869, 3.0925, 4.3207)
Luminance0.0309 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A173A #175A37
analogous
#59175A #5A173A #5A1718
triadic
#5A173A #3A5A17 #173A5A
tetradic
#5A173A #5A5917 #175A37 #17185A
square
#5A173A #5A5917 #175A37 #17185A
split-complementary
#5A173A #185A17 #175A59
monochromatic
#180610 #290B1B #5A173A #8B2359 #BB3079

Accessibility & contrast

On white

12.98
#5A173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A173A
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A173A#FFFFFF#000000##FFFFFF
##5A173A1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22293B
Deuteranopia (green-blind)
#353638
Tritanopia (blue-blind)
#611226
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a173a;
/* rgb */ color: rgb(90, 23, 58);
/* oklch */ color: oklch(32.8% 0.105 352.3);
Tailwind
colors: {
  custom: {
    50: '#8c5a70',
    500: '#5a173a',
    950: '#000000',
  },
}
SCSS
$custom: #5a173a;
$custom-light: #8c5a70;
$custom-dark: #000000;
JSON
{
  "hex": "#5a173a",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 328.657,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32767,
    "c": 0.1046,
    "h": 352.3
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#5A173A
secondary
#3C9164
accent
#E29045
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0407
muted
#7D797A

Preview Lab

Preview with #5A173A

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

Preview Lab → · Contrast checker → · Palette generator →

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