#5A162E#5A162E

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

Color values

HEX#5A162E
RGBrgb(90, 22, 46)
HSLhsl(339, 61%, 22%)
HSVhsv(339, 76%, 35%)
CMYKcmyk(0%, 75.6%, 48.9%, 64.7%)
CIE-LABlab(19.82, 32.90, 2.11)
CIE-LCHlch(19.82, 32.96, 3.67°)
OKLaboklab(32.19% 0.1006 0.0058)
OKLCHoklch(32.19% 0.101 3.3)
XYZxyz(4.9969, 2.9454, 2.8896)
Luminance0.0295 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A162E #165A42
analogous
#5A1650 #5A162E #5A2016
triadic
#5A162E #2E5A16 #162E5A
tetradic
#5A162E #505A16 #165A42 #20165A
square
#5A162E #505A16 #165A42 #20165A
split-complementary
#5A162E #165A20 #16505A
monochromatic
#19060D #290A15 #5A162E #8B2247 #BC2E60

Accessibility & contrast

On white

13.22
#5A162E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A162E
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A162E#FFFFFF#000000##FFFFFF
##5A162E1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25272F
Deuteranopia (green-blind)
#37352C
Tritanopia (blue-blind)
#620B20
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a162e;
/* rgb */ color: rgb(90, 22, 46);
/* oklch */ color: oklch(32.2% 0.101 3.3);
Tailwind
colors: {
  custom: {
    50: '#8d5966',
    500: '#5a162e',
    950: '#000000',
  },
}
SCSS
$custom: #5a162e;
$custom-light: #8d5966;
$custom-dark: #000000;
JSON
{
  "hex": "#5a162e",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 46
  },
  "hsl": {
    "h": 338.824,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32193,
    "c": 0.1008,
    "h": 3.3
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#5A162E
secondary
#3B9173
accent
#E4AB44
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5A162E

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

Preview Lab → · Contrast checker → · Palette generator →

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