#5A181D#5A181D

#5A181D is a dark, moderate red. Relative luminance 0.029; OKLCH L 32.0% C 0.096 H 20.3°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#5A181D
RGBrgb(90, 24, 29)
HSLhsl(355, 58%, 22%)
HSVhsv(355, 73%, 35%)
CMYKcmyk(0%, 73.3%, 67.8%, 64.7%)
CIE-LABlab(19.71, 30.47, 13.89)
CIE-LCHlch(19.71, 33.48, 24.52°)
OKLaboklab(31.96% 0.0903 0.0334)
OKLCHoklch(31.96% 0.096 20.3)
XYZxyz(4.7653, 2.9163, 1.4741)
Luminance0.0292 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A181D #185A55
analogous
#5A183E #5A181D #5A3418
triadic
#5A181D #1D5A18 #181D5A
tetradic
#5A181D #3E5A18 #185A55 #34185A
square
#5A181D #3E5A18 #185A55 #34185A
split-complementary
#5A181D #185A34 #183E5A
monochromatic
#180608 #2A0B0D #5A181D #8A252D #BB323C

Accessibility & contrast

On white

13.26
#5A181D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#5A181D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A181D
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A181D#FFFFFF#000000##FFFFFF
##5A181D1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A271D
Deuteranopia (green-blind)
#3A351B
Tritanopia (blue-blind)
#63081A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a181d;
/* rgb */ color: rgb(90, 24, 29);
/* oklch */ color: oklch(32.0% 0.096 20.3);
Tailwind
colors: {
  custom: {
    50: '#8e5a58',
    500: '#5a181d',
    950: '#000000',
  },
}
SCSS
$custom: #5a181d;
$custom-light: #8e5a58;
$custom-dark: #000000;
JSON
{
  "hex": "#5a181d",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 29
  },
  "hsl": {
    "h": 355.455,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31961,
    "c": 0.09629,
    "h": 20.3
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#5A181D
secondary
#3D918A
accent
#E1D547
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A181D

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

Preview Lab → · Contrast checker → · Palette generator →

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