#5A173D#5A173D

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

Color values

HEX#5A173D
RGBrgb(90, 23, 61)
HSLhsl(326, 59%, 22%)
HSVhsv(326, 74%, 35%)
CMYKcmyk(0%, 74.4%, 32.2%, 64.7%)
CIE-LABlab(20.53, 34.33, -7.34)
CIE-LCHlch(20.53, 35.11, 347.93°)
OKLaboklab(32.9% 0.1046 -0.0192)
OKLCHoklch(32.9% 0.106 349.6)
XYZxyz(5.3654, 3.1240, 4.7344)
Luminance0.0312 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A173D #175A34
analogous
#56175A #5A173D #5A171C
triadic
#5A173D #3D5A17 #173D5A
tetradic
#5A173D #5A5617 #175A34 #171C5A
square
#5A173D #5A5617 #175A34 #171C5A
split-complementary
#5A173D #1C5A17 #175A56
monochromatic
#180611 #290B1C #5A173D #8B235E #BB307F

Accessibility & contrast

On white

12.93
#5A173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A173D
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A173D#FFFFFF#000000##FFFFFF
##5A173D1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212A3E
Deuteranopia (green-blind)
#34363B
Tritanopia (blue-blind)
#611427
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a173d;
/* rgb */ color: rgb(90, 23, 61);
/* oklch */ color: oklch(32.9% 0.106 349.6);
Tailwind
colors: {
  custom: {
    50: '#8c5a72',
    500: '#5a173d',
    950: '#000000',
  },
}
SCSS
$custom: #5a173d;
$custom-light: #8c5a72;
$custom-dark: #000000;
JSON
{
  "hex": "#5a173d",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 325.97,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32897,
    "c": 0.10632,
    "h": 349.6
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#5A173D
secondary
#3C9161
accent
#E28945
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A173D

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

Preview Lab → · Contrast checker → · Palette generator →

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