#5A112B#5A112B

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

Color values

HEX#5A112B
RGBrgb(90, 17, 43)
HSLhsl(339, 68%, 21%)
HSVhsv(339, 81%, 35%)
CMYKcmyk(0%, 81.1%, 52.2%, 64.7%)
CIE-LABlab(19.01, 34.59, 3.07)
CIE-LCHlch(19.01, 34.72, 5.07°)
OKLaboklab(31.56% 0.1058 0.0082)
OKLCHoklch(31.56% 0.106 4.4)
XYZxyz(4.8534, 2.7496, 2.5602)
Luminance0.0275 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A112B #115A40
analogous
#5A114F #5A112B #5A1B11
triadic
#5A112B #2B5A11 #112B5A
tetradic
#5A112B #4F5A11 #115A40 #1B115A
square
#5A112B #4F5A11 #115A40 #1B115A
split-complementary
#5A112B #115A1B #114F5A
monochromatic
#1A050C #270712 #5A112B #8D1B44 #C1245C

Accessibility & contrast

On white

13.55
#5A112B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A112B
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A112B#FFFFFF#000000##FFFFFF
##5A112B1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23252C
Deuteranopia (green-blind)
#363329
Tritanopia (blue-blind)
#63031C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a112b;
/* rgb */ color: rgb(90, 17, 43);
/* oklch */ color: oklch(31.6% 0.106 4.4);
Tailwind
colors: {
  custom: {
    50: '#8d5764',
    500: '#5a112b',
    950: '#000000',
  },
}
SCSS
$custom: #5a112b;
$custom-light: #8d5764;
$custom-dark: #000000;
JSON
{
  "hex": "#5a112b",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 43
  },
  "hsl": {
    "h": 338.63,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31562,
    "c": 0.10614,
    "h": 4.4
  },
  "luminance": 0.02749
}

Semantic roles & 50–950 ramp

primary
#5A112B
secondary
#349371
accent
#EBAD3D
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A112B

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

Preview Lab → · Contrast checker → · Palette generator →

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