#5A162C#5A162C

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

Color values

HEX#5A162C
RGBrgb(90, 22, 44)
HSLhsl(341, 61%, 22%)
HSVhsv(341, 76%, 35%)
CMYKcmyk(0%, 75.6%, 51.1%, 64.7%)
CIE-LABlab(19.76, 32.68, 3.43)
CIE-LCHlch(19.76, 32.86, 5.99°)
OKLaboklab(32.13% 0.0998 0.0091)
OKLCHoklch(32.13% 0.1 5.2)
XYZxyz(4.9584, 2.9300, 2.6868)
Luminance0.0293 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A162C #165A44
analogous
#5A164E #5A162C #5A2216
triadic
#5A162C #2C5A16 #162C5A
tetradic
#5A162C #4E5A16 #165A44 #22165A
square
#5A162C #4E5A16 #165A44 #22165A
split-complementary
#5A162C #165A22 #164E5A
monochromatic
#19060C #290A14 #5A162C #8B2244 #BC2E5C

Accessibility & contrast

On white

13.24
#5A162C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A162C
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A162C#FFFFFF#000000##FFFFFF
##5A162C1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25272D
Deuteranopia (green-blind)
#37352A
Tritanopia (blue-blind)
#620A1F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a162c;
/* rgb */ color: rgb(90, 22, 44);
/* oklch */ color: oklch(32.1% 0.100 5.2);
Tailwind
colors: {
  custom: {
    50: '#8d5964',
    500: '#5a162c',
    950: '#000000',
  },
}
SCSS
$custom: #5a162c;
$custom-light: #8d5964;
$custom-dark: #000000;
JSON
{
  "hex": "#5a162c",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 44
  },
  "hsl": {
    "h": 340.588,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32126,
    "c": 0.10022,
    "h": 5.2
  },
  "luminance": 0.02929
}

Semantic roles & 50–950 ramp

primary
#5A162C
secondary
#3B9175
accent
#E4B044
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5A162C

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

Preview Lab → · Contrast checker → · Palette generator →

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