#5A172B#5A172B

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

Color values

HEX#5A172B
RGBrgb(90, 23, 43)
HSLhsl(342, 59%, 22%)
HSVhsv(342, 74%, 35%)
CMYKcmyk(0%, 74.4%, 52.2%, 64.7%)
CIE-LABlab(19.89, 32.14, 4.32)
CIE-LCHlch(19.89, 32.43, 7.65°)
OKLaboklab(32.21% 0.098 0.0113)
OKLCHoklch(32.21% 0.099 6.6)
XYZxyz(4.9593, 2.9615, 2.5955)
Luminance0.0296 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A172B #175A46
analogous
#5A174C #5A172B #5A2517
triadic
#5A172B #2B5A17 #172B5A
tetradic
#5A172B #4C5A17 #175A46 #25175A
square
#5A172B #4C5A17 #175A46 #25175A
split-complementary
#5A172B #175A25 #174C5A
monochromatic
#18060C #290B14 #5A172B #8B2342 #BB305A

Accessibility & contrast

On white

13.19
#5A172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A172B
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A172B#FFFFFF#000000##FFFFFF
##5A172B1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26282B
Deuteranopia (green-blind)
#383529
Tritanopia (blue-blind)
#620C1F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a172b;
/* rgb */ color: rgb(90, 23, 43);
/* oklch */ color: oklch(32.2% 0.099 6.6);
Tailwind
colors: {
  custom: {
    50: '#8d5a64',
    500: '#5a172b',
    950: '#000000',
  },
}
SCSS
$custom: #5a172b;
$custom-light: #8d5a64;
$custom-dark: #000000;
JSON
{
  "hex": "#5a172b",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 342.09,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32211,
    "c": 0.09864,
    "h": 6.6
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#5A172B
secondary
#3C9178
accent
#E2B445
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0405
muted
#7E7979

Preview Lab

Preview with #5A172B

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

Preview Lab → · Contrast checker → · Palette generator →

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