#5A181E#5A181E

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

Color values

HEX#5A181E
RGBrgb(90, 24, 30)
HSLhsl(355, 58%, 22%)
HSVhsv(355, 73%, 35%)
CMYKcmyk(0%, 73.3%, 66.7%, 64.7%)
CIE-LABlab(19.73, 30.54, 13.23)
CIE-LCHlch(19.73, 33.28, 23.42°)
OKLaboklab(31.98% 0.0908 0.032)
OKLCHoklch(31.98% 0.096 19.4)
XYZxyz(4.7779, 2.9213, 1.5403)
Luminance0.0292 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A181E #185A54
analogous
#5A183F #5A181E #5A3318
triadic
#5A181E #1E5A18 #181E5A
tetradic
#5A181E #3F5A18 #185A54 #33185A
square
#5A181E #3F5A18 #185A54 #33185A
split-complementary
#5A181E #185A33 #183F5A
monochromatic
#180608 #2A0B0E #5A181E #8A252E #BB323E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A181E#FFFFFF#000000##FFFFFF
##5A181E1.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)
#29271E
Deuteranopia (green-blind)
#3A351C
Tritanopia (blue-blind)
#63081B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a181e;
/* rgb */ color: rgb(90, 24, 30);
/* oklch */ color: oklch(32.0% 0.096 19.4);
Tailwind
colors: {
  custom: {
    50: '#8e5a59',
    500: '#5a181e',
    950: '#000000',
  },
}
SCSS
$custom: #5a181e;
$custom-light: #8e5a59;
$custom-dark: #000000;
JSON
{
  "hex": "#5a181e",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 30
  },
  "hsl": {
    "h": 354.545,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31983,
    "c": 0.09623,
    "h": 19.4
  },
  "luminance": 0.02921
}

Semantic roles & 50–950 ramp

primary
#5A181E
secondary
#3D9189
accent
#E1D347
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A181E

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

Preview Lab → · Contrast checker → · Palette generator →

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