#5A173E#5A173E

#5A173E is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.9% C 0.107 H 348.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#5A173E
RGBrgb(90, 23, 62)
HSLhsl(325, 59%, 22%)
HSVhsv(325, 74%, 35%)
CMYKcmyk(0%, 74.4%, 31.1%, 64.7%)
CIE-LABlab(20.58, 34.47, -7.97)
CIE-LCHlch(20.58, 35.38, 346.98°)
OKLaboklab(32.94% 0.1049 -0.0209)
OKLCHoklch(32.94% 0.107 348.7)
XYZxyz(5.3926, 3.1348, 4.8776)
Luminance0.0313 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A173E #175A33
analogous
#55175A #5A173E #5A171C
triadic
#5A173E #3E5A17 #173E5A
tetradic
#5A173E #5A5517 #175A33 #171C5A
square
#5A173E #5A5517 #175A33 #171C5A
split-complementary
#5A173E #1C5A17 #175A55
monochromatic
#180611 #290B1C #5A173E #8B2360 #BB3081

Accessibility & contrast

On white

12.91
#5A173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5A173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A173E
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A173E#FFFFFF#000000##FFFFFF
##5A173E1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A3F
Deuteranopia (green-blind)
#34363C
Tritanopia (blue-blind)
#611428
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a173e;
/* rgb */ color: rgb(90, 23, 62);
/* oklch */ color: oklch(32.9% 0.107 348.7);
Tailwind
colors: {
  custom: {
    50: '#8c5a73',
    500: '#5a173e',
    950: '#000000',
  },
}
SCSS
$custom: #5a173e;
$custom-light: #8c5a73;
$custom-dark: #000000;
JSON
{
  "hex": "#5a173e",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 325.075,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32942,
    "c": 0.10693,
    "h": 348.7
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#5A173E
secondary
#3C915F
accent
#E28745
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A173E

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

Preview Lab → · Contrast checker → · Palette generator →

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