#5A162D#5A162D

#5A162D is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.2% C 0.101 H 4.2°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#5A162D
RGBrgb(90, 22, 45)
HSLhsl(340, 61%, 22%)
HSVhsv(340, 76%, 35%)
CMYKcmyk(0%, 75.6%, 50%, 64.7%)
CIE-LABlab(19.79, 32.79, 2.77)
CIE-LCHlch(19.79, 32.90, 4.83°)
OKLaboklab(32.16% 0.1002 0.0074)
OKLCHoklch(32.16% 0.101 4.2)
XYZxyz(4.9774, 2.9376, 2.7870)
Luminance0.0294 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A162D #165A43
analogous
#5A164F #5A162D #5A2116
triadic
#5A162D #2D5A16 #162D5A
tetradic
#5A162D #4F5A16 #165A43 #21165A
square
#5A162D #4F5A16 #165A43 #21165A
split-complementary
#5A162D #165A21 #164F5A
monochromatic
#19060C #290A14 #5A162D #8B2246 #BC2E5E

Accessibility & contrast

On white

13.23
#5A162D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A162D
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A162D#FFFFFF#000000##FFFFFF
##5A162D1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25272E
Deuteranopia (green-blind)
#37352B
Tritanopia (blue-blind)
#620B1F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a162d;
/* rgb */ color: rgb(90, 22, 45);
/* oklch */ color: oklch(32.2% 0.101 4.2);
Tailwind
colors: {
  custom: {
    50: '#8d5965',
    500: '#5a162d',
    950: '#000000',
  },
}
SCSS
$custom: #5a162d;
$custom-light: #8d5965;
$custom-dark: #000000;
JSON
{
  "hex": "#5a162d",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 45
  },
  "hsl": {
    "h": 339.706,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32159,
    "c": 0.1005,
    "h": 4.2
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#5A162D
secondary
#3B9174
accent
#E4AE44
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5A162D

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

Preview Lab → · Contrast checker → · Palette generator →

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