#5A180D#5A180D

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

Color values

HEX#5A180D
RGBrgb(90, 24, 13)
HSLhsl(9, 75%, 20%)
HSVhsv(9, 86%, 35%)
CMYKcmyk(0%, 73.3%, 85.6%, 64.7%)
CIE-LABlab(19.46, 29.58, 23.70)
CIE-LCHlch(19.46, 37.90, 38.70°)
OKLaboklab(31.7% 0.0838 0.0524)
OKLCHoklch(31.7% 0.099 32)
XYZxyz(4.6163, 2.8567, 0.6890)
Luminance0.0286 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A180D #0D4F5A
analogous
#5A0D29 #5A180D #5A3E0D
triadic
#5A180D #0D5A18 #180D5A
tetradic
#5A180D #295A0D #0D4F5A #3E0D5A
square
#5A180D #295A0D #0D4F5A #3E0D5A
split-complementary
#5A180D #0D5A3E #0D295A
monochromatic
#1B0704 #250A05 #5A180D #8F2615 #C5351C

Accessibility & contrast

On white

13.37
#5A180D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#5A180D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A180D
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A180D#FFFFFF#000000##FFFFFF
##5A180D1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B260B
Deuteranopia (green-blind)
#3C350A
Tritanopia (blue-blind)
#640416
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a180d;
/* rgb */ color: rgb(90, 24, 13);
/* oklch */ color: oklch(31.7% 0.099 32.0);
Tailwind
colors: {
  custom: {
    50: '#8f594d',
    500: '#5a180d',
    950: '#000000',
  },
}
SCSS
$custom: #5a180d;
$custom-light: #8f594d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a180d",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 13
  },
  "hsl": {
    "h": 8.571,
    "s": 74.757,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31699,
    "c": 0.09886,
    "h": 32
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#5A180D
secondary
#2E8694
accent
#D7F136
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5A180D

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

Preview Lab → · Contrast checker → · Palette generator →

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