#5A172A#5A172A

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

Color values

HEX#5A172A
RGBrgb(90, 23, 42)
HSLhsl(343, 59%, 22%)
HSVhsv(343, 74%, 35%)
CMYKcmyk(0%, 74.4%, 53.3%, 64.7%)
CIE-LABlab(19.86, 32.04, 4.98)
CIE-LCHlch(19.86, 32.43, 8.84°)
OKLaboklab(32.18% 0.0976 0.0129)
OKLCHoklch(32.18% 0.098 7.6)
XYZxyz(4.9412, 2.9543, 2.5001)
Luminance0.0295 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A172A #175A47
analogous
#5A174C #5A172A #5A2617
triadic
#5A172A #2A5A17 #172A5A
tetradic
#5A172A #4C5A17 #175A47 #26175A
square
#5A172A #4C5A17 #175A47 #26175A
split-complementary
#5A172A #175A26 #174C5A
monochromatic
#18060B #290B13 #5A172A #8B2341 #BB3057

Accessibility & contrast

On white

13.20
#5A172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A172A
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A172A#FFFFFF#000000##FFFFFF
##5A172A1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27272A
Deuteranopia (green-blind)
#383528
Tritanopia (blue-blind)
#630B1F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a172a;
/* rgb */ color: rgb(90, 23, 42);
/* oklch */ color: oklch(32.2% 0.098 7.6);
Tailwind
colors: {
  custom: {
    50: '#8d5a63',
    500: '#5a172a',
    950: '#000000',
  },
}
SCSS
$custom: #5a172a;
$custom-light: #8d5a63;
$custom-dark: #000000;
JSON
{
  "hex": "#5a172a",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 342.985,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32179,
    "c": 0.09841,
    "h": 7.6
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#5A172A
secondary
#3C9179
accent
#E2B645
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0405
muted
#7E7979

Preview Lab

Preview with #5A172A

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

Preview Lab → · Contrast checker → · Palette generator →

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