#5A142B#5A142B

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

Color values

HEX#5A142B
RGBrgb(90, 20, 43)
HSLhsl(340, 64%, 22%)
HSVhsv(340, 78%, 35%)
CMYKcmyk(0%, 77.8%, 52.2%, 64.7%)
CIE-LABlab(19.43, 33.42, 3.66)
CIE-LCHlch(19.43, 33.62, 6.26°)
OKLaboklab(31.87% 0.1021 0.0097)
OKLCHoklch(31.87% 0.103 5.4)
XYZxyz(4.9031, 2.8490, 2.5768)
Luminance0.0285 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A142B #145A43
analogous
#5A144E #5A142B #5A2014
triadic
#5A142B #2B5A14 #142B5A
tetradic
#5A142B #4E5A14 #145A43 #20145A
square
#5A142B #4E5A14 #145A43 #20145A
split-complementary
#5A142B #145A20 #144E5A
monochromatic
#19060C #280913 #5A142B #8C1F43 #BE2A5B

Accessibility & contrast

On white

13.38
#5A142B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A142B
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A142B#FFFFFF#000000##FFFFFF
##5A142B1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24262C
Deuteranopia (green-blind)
#373429
Tritanopia (blue-blind)
#63071E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a142b;
/* rgb */ color: rgb(90, 20, 43);
/* oklch */ color: oklch(31.9% 0.103 5.4);
Tailwind
colors: {
  custom: {
    50: '#8d5864',
    500: '#5a142b',
    950: '#000000',
  },
}
SCSS
$custom: #5a142b;
$custom-light: #8d5864;
$custom-dark: #000000;
JSON
{
  "hex": "#5a142b",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 43
  },
  "hsl": {
    "h": 340.286,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.3187,
    "c": 0.10253,
    "h": 5.4
  },
  "luminance": 0.02848
}

Semantic roles & 50–950 ramp

primary
#5A142B
secondary
#389274
accent
#E7B041
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0405
muted
#7E7979

Preview Lab

Preview with #5A142B

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

Preview Lab → · Contrast checker → · Palette generator →

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