#5A112D#5A112D

#5A112D is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.6% C 0.107 H 2.6°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#5A112D
RGBrgb(90, 17, 45)
HSLhsl(337, 68%, 21%)
HSVhsv(337, 81%, 35%)
CMYKcmyk(0%, 81.1%, 50%, 64.7%)
CIE-LABlab(19.08, 34.79, 1.74)
CIE-LCHlch(19.08, 34.83, 2.86°)
OKLaboklab(31.63% 0.1066 0.0048)
OKLCHoklch(31.63% 0.107 2.6)
XYZxyz(4.8910, 2.7647, 2.7582)
Luminance0.0276 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A112D #115A3E
analogous
#5A1151 #5A112D #5A1911
triadic
#5A112D #2D5A11 #112D5A
tetradic
#5A112D #515A11 #115A3E #19115A
square
#5A112D #515A11 #115A3E #19115A
split-complementary
#5A112D #115A19 #11515A
monochromatic
#1A050D #270713 #5A112D #8D1B47 #C12460

Accessibility & contrast

On white

13.52
#5A112D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#5A112D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A112D
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A112D#FFFFFF#000000##FFFFFF
##5A112D1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22252E
Deuteranopia (green-blind)
#36332B
Tritanopia (blue-blind)
#62041D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a112d;
/* rgb */ color: rgb(90, 17, 45);
/* oklch */ color: oklch(31.6% 0.107 2.6);
Tailwind
colors: {
  custom: {
    50: '#8d5765',
    500: '#5a112d',
    950: '#000000',
  },
}
SCSS
$custom: #5a112d;
$custom-light: #8d5765;
$custom-dark: #000000;
JSON
{
  "hex": "#5a112d",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 45
  },
  "hsl": {
    "h": 336.986,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3163,
    "c": 0.10674,
    "h": 2.6
  },
  "luminance": 0.02764
}

Semantic roles & 50–950 ramp

primary
#5A112D
secondary
#34936E
accent
#EBA83D
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0305
muted
#7E787A

Preview Lab

Preview with #5A112D

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

Preview Lab → · Contrast checker → · Palette generator →

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