#5A112A#5A112A

#5A112A is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.5% C 0.106 H 5.3°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#5A112A
RGBrgb(90, 17, 42)
HSLhsl(339, 68%, 21%)
HSVhsv(339, 81%, 35%)
CMYKcmyk(0%, 81.1%, 53.3%, 64.7%)
CIE-LABlab(18.98, 34.48, 3.74)
CIE-LCHlch(18.98, 34.69, 6.18°)
OKLaboklab(31.53% 0.1054 0.0098)
OKLCHoklch(31.53% 0.106 5.3)
XYZxyz(4.8352, 2.7424, 2.4648)
Luminance0.0274 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A112A #115A41
analogous
#5A114E #5A112A #5A1C11
triadic
#5A112A #2A5A11 #112A5A
tetradic
#5A112A #4E5A11 #115A41 #1C115A
square
#5A112A #4E5A11 #115A41 #1C115A
split-complementary
#5A112A #115A1C #114E5A
monochromatic
#1A050C #270712 #5A112A #8D1B42 #C1245A

Accessibility & contrast

On white

13.56
#5A112A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A112A
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A112A#FFFFFF#000000##FFFFFF
##5A112A1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23252B
Deuteranopia (green-blind)
#363328
Tritanopia (blue-blind)
#63021C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a112a;
/* rgb */ color: rgb(90, 17, 42);
/* oklch */ color: oklch(31.5% 0.106 5.3);
Tailwind
colors: {
  custom: {
    50: '#8d5763',
    500: '#5a112a',
    950: '#000000',
  },
}
SCSS
$custom: #5a112a;
$custom-light: #8d5763;
$custom-dark: #000000;
JSON
{
  "hex": "#5a112a",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 42
  },
  "hsl": {
    "h": 339.452,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3153,
    "c": 0.10586,
    "h": 5.3
  },
  "luminance": 0.02742
}

Semantic roles & 50–950 ramp

primary
#5A112A
secondary
#349372
accent
#EBAF3D
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A112A

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

Preview Lab → · Contrast checker → · Palette generator →

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