#5A173C#5A173C

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

Color values

HEX#5A173C
RGBrgb(90, 23, 60)
HSLhsl(327, 59%, 22%)
HSVhsv(327, 74%, 35%)
CMYKcmyk(0%, 74.4%, 33.3%, 64.7%)
CIE-LABlab(20.49, 34.19, -6.71)
CIE-LCHlch(20.49, 34.84, 348.90°)
OKLaboklab(32.85% 0.1043 -0.0174)
OKLCHoklch(32.85% 0.106 350.5)
XYZxyz(5.3387, 3.1133, 4.5939)
Luminance0.0311 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A173C #175A35
analogous
#57175A #5A173C #5A171A
triadic
#5A173C #3C5A17 #173C5A
tetradic
#5A173C #5A5717 #175A35 #171A5A
square
#5A173C #5A5717 #175A35 #171A5A
split-complementary
#5A173C #1A5A17 #175A57
monochromatic
#180610 #290B1C #5A173C #8B235C #BB307D

Accessibility & contrast

On white

12.94
#5A173C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A173C
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A173C#FFFFFF#000000##FFFFFF
##5A173C1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212A3D
Deuteranopia (green-blind)
#34363A
Tritanopia (blue-blind)
#611327
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a173c;
/* rgb */ color: rgb(90, 23, 60);
/* oklch */ color: oklch(32.9% 0.106 350.5);
Tailwind
colors: {
  custom: {
    50: '#8c5a71',
    500: '#5a173c',
    950: '#000000',
  },
}
SCSS
$custom: #5a173c;
$custom-light: #8c5a71;
$custom-dark: #000000;
JSON
{
  "hex": "#5a173c",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 60
  },
  "hsl": {
    "h": 326.866,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32853,
    "c": 0.10573,
    "h": 350.5
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#5A173C
secondary
#3C9162
accent
#E28C45
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0407
muted
#7D797A

Preview Lab

Preview with #5A173C

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

Preview Lab → · Contrast checker → · Palette generator →

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