#5A162F#5A162F

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

Color values

HEX#5A162F
RGBrgb(90, 22, 47)
HSLhsl(338, 61%, 22%)
HSVhsv(338, 76%, 35%)
CMYKcmyk(0%, 75.6%, 47.8%, 64.7%)
CIE-LABlab(19.86, 33.01, 1.45)
CIE-LCHlch(19.86, 33.04, 2.52°)
OKLaboklab(32.23% 0.101 0.0041)
OKLCHoklch(32.23% 0.101 2.3)
XYZxyz(5.0168, 2.9533, 2.9946)
Luminance0.0295 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A162F #165A41
analogous
#5A1651 #5A162F #5A1F16
triadic
#5A162F #2F5A16 #162F5A
tetradic
#5A162F #515A16 #165A41 #1F165A
square
#5A162F #515A16 #165A41 #1F165A
split-complementary
#5A162F #165A1F #16515A
monochromatic
#19060D #290A15 #5A162F #8B2249 #BC2E62

Accessibility & contrast

On white

13.20
#5A162F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A162F
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A162F#FFFFFF#000000##FFFFFF
##5A162F1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252830
Deuteranopia (green-blind)
#37352D
Tritanopia (blue-blind)
#620C20
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a162f;
/* rgb */ color: rgb(90, 22, 47);
/* oklch */ color: oklch(32.2% 0.101 2.3);
Tailwind
colors: {
  custom: {
    50: '#8c5967',
    500: '#5a162f',
    950: '#000000',
  },
}
SCSS
$custom: #5a162f;
$custom-light: #8c5967;
$custom-dark: #000000;
JSON
{
  "hex": "#5a162f",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 47
  },
  "hsl": {
    "h": 337.941,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32227,
    "c": 0.10112,
    "h": 2.3
  },
  "luminance": 0.02953
}

Semantic roles & 50–950 ramp

primary
#5A162F
secondary
#3B9171
accent
#E4A944
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0D0406
muted
#7D797A

Preview Lab

Preview with #5A162F

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

Preview Lab → · Contrast checker → · Palette generator →

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