#5A112F#5A112F

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

Color values

HEX#5A112F
RGBrgb(90, 17, 47)
HSLhsl(335, 68%, 21%)
HSVhsv(335, 81%, 35%)
CMYKcmyk(0%, 81.1%, 47.8%, 64.7%)
CIE-LABlab(19.14, 35.00, 0.41)
CIE-LCHlch(19.14, 35.00, 0.68°)
OKLaboklab(31.7% 0.1074 0.0015)
OKLCHoklch(31.7% 0.107 0.8)
XYZxyz(4.9304, 2.7804, 2.9658)
Luminance0.0278 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A112F #115A3C
analogous
#5A1153 #5A112F #5A1711
triadic
#5A112F #2F5A11 #112F5A
tetradic
#5A112F #535A11 #115A3C #17115A
square
#5A112F #535A11 #115A3C #17115A
split-complementary
#5A112F #115A17 #11535A
monochromatic
#1A050D #270714 #5A112F #8D1B4A #C12465

Accessibility & contrast

On white

13.50
#5A112F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#5A112F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A112F
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A112F#FFFFFF#000000##FFFFFF
##5A112F1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222530
Deuteranopia (green-blind)
#35342D
Tritanopia (blue-blind)
#62051E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a112f;
/* rgb */ color: rgb(90, 17, 47);
/* oklch */ color: oklch(31.7% 0.107 0.8);
Tailwind
colors: {
  custom: {
    50: '#8d5767',
    500: '#5a112f',
    950: '#000000',
  },
}
SCSS
$custom: #5a112f;
$custom-light: #8d5767;
$custom-dark: #000000;
JSON
{
  "hex": "#5a112f",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 47
  },
  "hsl": {
    "h": 335.342,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31701,
    "c": 0.10742,
    "h": 0.8
  },
  "luminance": 0.0278
}

Semantic roles & 50–950 ramp

primary
#5A112F
secondary
#34936C
accent
#EBA33D
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0306
muted
#7E787A

Preview Lab

Preview with #5A112F

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

Preview Lab → · Contrast checker → · Palette generator →

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