#5A181B#5A181B

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

Color values

HEX#5A181B
RGBrgb(90, 24, 27)
HSLhsl(357, 58%, 22%)
HSVhsv(357, 73%, 35%)
CMYKcmyk(0%, 73.3%, 70%, 64.7%)
CIE-LABlab(19.67, 30.33, 15.23)
CIE-LCHlch(19.67, 33.93, 26.66°)
OKLaboklab(31.92% 0.0894 0.0362)
OKLCHoklch(31.92% 0.096 22)
XYZxyz(4.7414, 2.9067, 1.3481)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A181B #185A57
analogous
#5A183C #5A181B #5A3618
triadic
#5A181B #1B5A18 #181B5A
tetradic
#5A181B #3C5A18 #185A57 #36185A
square
#5A181B #3C5A18 #185A57 #36185A
split-complementary
#5A181B #185A36 #183C5A
monochromatic
#180607 #2A0B0D #5A181B #8A2529 #BB3238

Accessibility & contrast

On white

13.28
#5A181B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A181B
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A181B#FFFFFF#000000##FFFFFF
##5A181B1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A271B
Deuteranopia (green-blind)
#3A3519
Tritanopia (blue-blind)
#63071A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a181b;
/* rgb */ color: rgb(90, 24, 27);
/* oklch */ color: oklch(31.9% 0.096 22.0);
Tailwind
colors: {
  custom: {
    50: '#8e5a57',
    500: '#5a181b',
    950: '#000000',
  },
}
SCSS
$custom: #5a181b;
$custom-light: #8e5a57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a181b",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 27
  },
  "hsl": {
    "h": 357.273,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31919,
    "c": 0.09646,
    "h": 22
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#5A181B
secondary
#3D918D
accent
#E1DA47
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A181B

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

Preview Lab → · Contrast checker → · Palette generator →

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