#5A181F#5A181F

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

Color values

HEX#5A181F
RGBrgb(90, 24, 31)
HSLhsl(354, 58%, 22%)
HSVhsv(354, 73%, 35%)
CMYKcmyk(0%, 73.3%, 65.6%, 64.7%)
CIE-LABlab(19.75, 30.62, 12.56)
CIE-LCHlch(19.75, 33.09, 22.30°)
OKLaboklab(32.01% 0.0912 0.0305)
OKLCHoklch(32.01% 0.096 18.5)
XYZxyz(4.7909, 2.9265, 1.6087)
Luminance0.0293 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A181F #185A53
analogous
#5A1840 #5A181F #5A3218
triadic
#5A181F #1F5A18 #181F5A
tetradic
#5A181F #405A18 #185A53 #32185A
square
#5A181F #405A18 #185A53 #32185A
split-complementary
#5A181F #185A32 #18405A
monochromatic
#180608 #2A0B0E #5A181F #8A2530 #BB3240

Accessibility & contrast

On white

13.25
#5A181F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5A181F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A181F
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A181F#FFFFFF#000000##FFFFFF
##5A181F1.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29271F
Deuteranopia (green-blind)
#3A351D
Tritanopia (blue-blind)
#63081B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a181f;
/* rgb */ color: rgb(90, 24, 31);
/* oklch */ color: oklch(32.0% 0.096 18.5);
Tailwind
colors: {
  custom: {
    50: '#8e5a5a',
    500: '#5a181f',
    950: '#000000',
  },
}
SCSS
$custom: #5a181f;
$custom-light: #8e5a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a181f",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 31
  },
  "hsl": {
    "h": 353.636,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32006,
    "c": 0.09619,
    "h": 18.5
  },
  "luminance": 0.02926
}

Semantic roles & 50–950 ramp

primary
#5A181F
secondary
#3D9188
accent
#E1D147
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A181F

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

Preview Lab → · Contrast checker → · Palette generator →

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