#5A162A#5A162A

#5A162A is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.1% C 0.100 H 7.1°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#5A162A
RGBrgb(90, 22, 42)
HSLhsl(342, 61%, 22%)
HSVhsv(342, 76%, 35%)
CMYKcmyk(0%, 75.6%, 53.3%, 64.7%)
CIE-LABlab(19.70, 32.48, 4.76)
CIE-LCHlch(19.70, 32.83, 8.33°)
OKLaboklab(32.06% 0.099 0.0124)
OKLCHoklch(32.06% 0.1 7.1)
XYZxyz(4.9217, 2.9153, 2.4936)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A162A #165A46
analogous
#5A164C #5A162A #5A2416
triadic
#5A162A #2A5A16 #162A5A
tetradic
#5A162A #4C5A16 #165A46 #24165A
square
#5A162A #4C5A16 #165A46 #24165A
split-complementary
#5A162A #165A24 #164C5A
monochromatic
#19060B #290A13 #5A162A #8B2241 #BC2E58

Accessibility & contrast

On white

13.27
#5A162A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#5A162A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A162A
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A162A#FFFFFF#000000##FFFFFF
##5A162A1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26272A
Deuteranopia (green-blind)
#383528
Tritanopia (blue-blind)
#63091E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a162a;
/* rgb */ color: rgb(90, 22, 42);
/* oklch */ color: oklch(32.1% 0.100 7.1);
Tailwind
colors: {
  custom: {
    50: '#8d5963',
    500: '#5a162a',
    950: '#000000',
  },
}
SCSS
$custom: #5a162a;
$custom-light: #8d5963;
$custom-dark: #000000;
JSON
{
  "hex": "#5a162a",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 42
  },
  "hsl": {
    "h": 342.353,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32062,
    "c": 0.09973,
    "h": 7.1
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#5A162A
secondary
#3B9178
accent
#E4B544
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0405
muted
#7E7979

Preview Lab

Preview with #5A162A

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

Preview Lab → · Contrast checker → · Palette generator →

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