#5A181A#5A181A

#5A181A is a dark, moderate red. Relative luminance 0.029; OKLCH L 31.9% C 0.097 H 22.9°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#5A181A
RGBrgb(90, 24, 26)
HSLhsl(358, 58%, 22%)
HSVhsv(358, 73%, 35%)
CMYKcmyk(0%, 73.3%, 71.1%, 64.7%)
CIE-LABlab(19.65, 30.26, 15.89)
CIE-LCHlch(19.65, 34.18, 27.71°)
OKLaboklab(31.9% 0.089 0.0375)
OKLCHoklch(31.9% 0.097 22.9)
XYZxyz(4.7300, 2.9022, 1.2882)
Luminance0.0290 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A181A #185A58
analogous
#5A183B #5A181A #5A3718
triadic
#5A181A #1A5A18 #181A5A
tetradic
#5A181A #3B5A18 #185A58 #37185A
square
#5A181A #3B5A18 #185A58 #37185A
split-complementary
#5A181A #185A37 #183B5A
monochromatic
#180607 #2A0B0C #5A181A #8A2528 #BB3236

Accessibility & contrast

On white

13.29
#5A181A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A181A
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A181A#FFFFFF#000000##FFFFFF
##5A181A1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A271A
Deuteranopia (green-blind)
#3B3518
Tritanopia (blue-blind)
#630719
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a181a;
/* rgb */ color: rgb(90, 24, 26);
/* oklch */ color: oklch(31.9% 0.097 22.9);
Tailwind
colors: {
  custom: {
    50: '#8e5a56',
    500: '#5a181a',
    950: '#000000',
  },
}
SCSS
$custom: #5a181a;
$custom-light: #8e5a56;
$custom-dark: #000000;
JSON
{
  "hex": "#5a181a",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 26
  },
  "hsl": {
    "h": 358.182,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31899,
    "c": 0.09656,
    "h": 22.9
  },
  "luminance": 0.02902
}

Semantic roles & 50–950 ramp

primary
#5A181A
secondary
#3D918E
accent
#E1DC47
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A181A

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

Preview Lab → · Contrast checker → · Palette generator →

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