#5A142C#5A142C

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

Color values

HEX#5A142C
RGBrgb(90, 20, 44)
HSLhsl(339, 64%, 22%)
HSVhsv(339, 78%, 35%)
CMYKcmyk(0%, 77.8%, 51.1%, 64.7%)
CIE-LABlab(19.46, 33.52, 3.00)
CIE-LCHlch(19.46, 33.65, 5.11°)
OKLaboklab(31.9% 0.1025 0.008)
OKLCHoklch(31.9% 0.103 4.5)
XYZxyz(4.9216, 2.8565, 2.6746)
Luminance0.0286 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A142C #145A42
analogous
#5A144F #5A142C #5A1F14
triadic
#5A142C #2C5A14 #142C5A
tetradic
#5A142C #4F5A14 #145A42 #1F145A
square
#5A142C #4F5A14 #145A42 #1F145A
split-complementary
#5A142C #145A1F #144F5A
monochromatic
#19060C #280914 #5A142C #8C1F44 #BE2A5D

Accessibility & contrast

On white

13.37
#5A142C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A142C
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A142C#FFFFFF#000000##FFFFFF
##5A142C1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24262D
Deuteranopia (green-blind)
#37342A
Tritanopia (blue-blind)
#62071E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a142c;
/* rgb */ color: rgb(90, 20, 44);
/* oklch */ color: oklch(31.9% 0.103 4.5);
Tailwind
colors: {
  custom: {
    50: '#8d5864',
    500: '#5a142c',
    950: '#000000',
  },
}
SCSS
$custom: #5a142c;
$custom-light: #8d5864;
$custom-dark: #000000;
JSON
{
  "hex": "#5a142c",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 44
  },
  "hsl": {
    "h": 339.429,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31903,
    "c": 0.1028,
    "h": 4.5
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#5A142C
secondary
#389273
accent
#E7AE41
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5A142C

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

Preview Lab → · Contrast checker → · Palette generator →

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