#5A4040#5A4040

#5A4040 is a dark, muted red. Relative luminance 0.062; OKLCH L 40.0% C 0.036 H 18.8°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5A4040
RGBrgb(90, 64, 64)
HSLhsl(0, 17%, 30%)
HSVhsv(0, 29%, 35%)
CMYKcmyk(0%, 28.9%, 28.9%, 64.7%)
CIE-LABlab(29.94, 11.33, 4.47)
CIE-LCHlch(29.94, 12.18, 21.54°)
OKLaboklab(40.03% 0.0345 0.0118)
OKLCHoklch(40.03% 0.036 18.8)
XYZxyz(6.9754, 6.2110, 5.6809)
Luminance0.0621 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4040 #405A5A
analogous
#5A404D #5A4040 #5A4D40
triadic
#5A4040 #405A40 #40405A
tetradic
#5A4040 #4D5A40 #405A5A #4D405A
square
#5A4040 #4D5A40 #405A5A #4D405A
split-complementary
#5A4040 #405A4D #404D5A
monochromatic
#120D0D #362727 #5A4040 #7E5959 #9E7676

Accessibility & contrast

On white

9.37
#5A4040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A4040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4040
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4040#FFFFFF#000000##FFFFFF
##5A40401.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#454440
Deuteranopia (green-blind)
#4B4840
Tritanopia (blue-blind)
#5F3D40
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a4040;
/* rgb */ color: rgb(90, 64, 64);
/* oklch */ color: oklch(40.0% 0.036 18.8);
Tailwind
colors: {
  custom: {
    50: '#897574',
    500: '#5a4040',
    950: '#000000',
  },
}
SCSS
$custom: #5a4040;
$custom-light: #897574;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4040",
  "rgb": {
    "r": 90,
    "g": 64,
    "b": 64
  },
  "hsl": {
    "h": 0,
    "s": 16.883,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40034,
    "c": 0.03648,
    "h": 18.8
  },
  "luminance": 0.06211
}

Semantic roles & 50–950 ramp

primary
#5A4040
secondary
#6C8989
accent
#BABA6E
background
#F8F7F7
surface
#F0EDED
border
#CBC8C8
text
#0B0808
muted
#7C7B7B

Preview Lab

Preview with #5A4040

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

Preview Lab → · Contrast checker → · Palette generator →

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