#5A112E#5A112E

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

Color values

HEX#5A112E
RGBrgb(90, 17, 46)
HSLhsl(336, 68%, 21%)
HSVhsv(336, 81%, 35%)
CMYKcmyk(0%, 81.1%, 48.9%, 64.7%)
CIE-LABlab(19.11, 34.89, 1.07)
CIE-LCHlch(19.11, 34.91, 1.76°)
OKLaboklab(31.67% 0.107 0.0032)
OKLCHoklch(31.67% 0.107 1.7)
XYZxyz(4.9104, 2.7725, 2.8608)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A112E #115A3D
analogous
#5A1152 #5A112E #5A1811
triadic
#5A112E #2E5A11 #112E5A
tetradic
#5A112E #525A11 #115A3D #18115A
square
#5A112E #525A11 #115A3D #18115A
split-complementary
#5A112E #115A18 #11525A
monochromatic
#1A050D #270714 #5A112E #8D1B48 #C12463

Accessibility & contrast

On white

13.51
#5A112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A112E
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A112E#FFFFFF#000000##FFFFFF
##5A112E1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22252F
Deuteranopia (green-blind)
#35332C
Tritanopia (blue-blind)
#62041E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a112e;
/* rgb */ color: rgb(90, 17, 46);
/* oklch */ color: oklch(31.7% 0.107 1.7);
Tailwind
colors: {
  custom: {
    50: '#8d5766',
    500: '#5a112e',
    950: '#000000',
  },
}
SCSS
$custom: #5a112e;
$custom-light: #8d5766;
$custom-dark: #000000;
JSON
{
  "hex": "#5a112e",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 336.164,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31665,
    "c": 0.10707,
    "h": 1.7
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#5A112E
secondary
#34936D
accent
#EBA63D
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0305
muted
#7E787A

Preview Lab

Preview with #5A112E

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

Preview Lab → · Contrast checker → · Palette generator →

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