#5A162B#5A162B

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

Color values

HEX#5A162B
RGBrgb(90, 22, 43)
HSLhsl(341, 61%, 22%)
HSVhsv(341, 76%, 35%)
CMYKcmyk(0%, 75.6%, 52.2%, 64.7%)
CIE-LABlab(19.73, 32.58, 4.09)
CIE-LCHlch(19.73, 32.84, 7.16°)
OKLaboklab(32.09% 0.0994 0.0107)
OKLCHoklch(32.09% 0.1 6.2)
XYZxyz(4.9398, 2.9225, 2.5890)
Luminance0.0292 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A162B #165A45
analogous
#5A164D #5A162B #5A2316
triadic
#5A162B #2B5A16 #162B5A
tetradic
#5A162B #4D5A16 #165A45 #23165A
square
#5A162B #4D5A16 #165A45 #23165A
split-complementary
#5A162B #165A23 #164D5A
monochromatic
#19060C #290A14 #5A162B #8B2242 #BC2E5A

Accessibility & contrast

On white

13.25
#5A162B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A162B
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A162B#FFFFFF#000000##FFFFFF
##5A162B1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26272B
Deuteranopia (green-blind)
#383529
Tritanopia (blue-blind)
#620A1F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a162b;
/* rgb */ color: rgb(90, 22, 43);
/* oklch */ color: oklch(32.1% 0.100 6.2);
Tailwind
colors: {
  custom: {
    50: '#8d5964',
    500: '#5a162b',
    950: '#000000',
  },
}
SCSS
$custom: #5a162b;
$custom-light: #8d5964;
$custom-dark: #000000;
JSON
{
  "hex": "#5a162b",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 43
  },
  "hsl": {
    "h": 341.471,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32094,
    "c": 0.09997,
    "h": 6.2
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#5A162B
secondary
#3B9176
accent
#E4B244
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0405
muted
#7E7979

Preview Lab

Preview with #5A162B

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

Preview Lab → · Contrast checker → · Palette generator →

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