#5A172C#5A172C

#5A172C is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.2% C 0.099 H 5.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#5A172C
RGBrgb(90, 23, 44)
HSLhsl(341, 59%, 22%)
HSVhsv(341, 74%, 35%)
CMYKcmyk(0%, 74.4%, 51.1%, 64.7%)
CIE-LABlab(19.92, 32.25, 3.66)
CIE-LCHlch(19.92, 32.45, 6.47°)
OKLaboklab(32.24% 0.0984 0.0097)
OKLCHoklch(32.24% 0.099 5.6)
XYZxyz(4.9779, 2.9689, 2.6933)
Luminance0.0297 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A172C #175A45
analogous
#5A174E #5A172C #5A2417
triadic
#5A172C #2C5A17 #172C5A
tetradic
#5A172C #4E5A17 #175A45 #24175A
square
#5A172C #4E5A17 #175A45 #24175A
split-complementary
#5A172C #175A24 #174E5A
monochromatic
#18060C #290B14 #5A172C #8B2344 #BB305C

Accessibility & contrast

On white

13.18
#5A172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5A172C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A172C
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A172C#FFFFFF#000000##FFFFFF
##5A172C1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26282C
Deuteranopia (green-blind)
#38352A
Tritanopia (blue-blind)
#620C1F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a172c;
/* rgb */ color: rgb(90, 23, 44);
/* oklch */ color: oklch(32.2% 0.099 5.6);
Tailwind
colors: {
  custom: {
    50: '#8d5a64',
    500: '#5a172c',
    950: '#000000',
  },
}
SCSS
$custom: #5a172c;
$custom-light: #8d5a64;
$custom-dark: #000000;
JSON
{
  "hex": "#5a172c",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 341.194,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32243,
    "c": 0.09889,
    "h": 5.6
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#5A172C
secondary
#3C9176
accent
#E2B145
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5A172C

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

Preview Lab → · Contrast checker → · Palette generator →

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