#5A142E#5A142E

#5A142E is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.0% C 0.103 H 2.6°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#5A142E
RGBrgb(90, 20, 46)
HSLhsl(338, 64%, 22%)
HSVhsv(338, 78%, 35%)
CMYKcmyk(0%, 77.8%, 48.9%, 64.7%)
CIE-LABlab(19.52, 33.73, 1.68)
CIE-LCHlch(19.52, 33.77, 2.84°)
OKLaboklab(31.97% 0.1033 0.0047)
OKLCHoklch(31.97% 0.103 2.6)
XYZxyz(4.9601, 2.8719, 2.8774)
Luminance0.0287 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A142E #145A40
analogous
#5A1451 #5A142E #5A1D14
triadic
#5A142E #2E5A14 #142E5A
tetradic
#5A142E #515A14 #145A40 #1D145A
square
#5A142E #515A14 #145A40 #1D145A
split-complementary
#5A142E #145A1D #14515A
monochromatic
#19060D #280914 #5A142E #8C1F48 #BE2A61

Accessibility & contrast

On white

13.34
#5A142E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#5A142E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A142E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A142E#FFFFFF#000000##FFFFFF
##5A142E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24272F
Deuteranopia (green-blind)
#36342C
Tritanopia (blue-blind)
#62081F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a142e;
/* rgb */ color: rgb(90, 20, 46);
/* oklch */ color: oklch(32.0% 0.103 2.6);
Tailwind
colors: {
  custom: {
    50: '#8d5866',
    500: '#5a142e',
    950: '#000000',
  },
}
SCSS
$custom: #5a142e;
$custom-light: #8d5866;
$custom-dark: #000000;
JSON
{
  "hex": "#5a142e",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 46
  },
  "hsl": {
    "h": 337.714,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31971,
    "c": 0.10341,
    "h": 2.6
  },
  "luminance": 0.02871
}

Semantic roles & 50–950 ramp

primary
#5A142E
secondary
#389270
accent
#E7A941
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5A142E

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

Preview Lab → · Contrast checker → · Palette generator →

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