#5A180E#5A180E

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

Color values

HEX#5A180E
RGBrgb(90, 24, 14)
HSLhsl(8, 73%, 20%)
HSVhsv(8, 84%, 35%)
CMYKcmyk(0%, 73.3%, 84.4%, 64.7%)
CIE-LABlab(19.47, 29.62, 23.22)
CIE-LCHlch(19.47, 37.63, 38.09°)
OKLaboklab(31.71% 0.0842 0.0515)
OKLCHoklch(31.71% 0.099 31.4)
XYZxyz(4.6229, 2.8593, 0.7239)
Luminance0.0286 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A180E #0E505A
analogous
#5A0E2A #5A180E #5A3E0E
triadic
#5A180E #0E5A18 #180E5A
tetradic
#5A180E #2A5A0E #0E505A #3E0E5A
square
#5A180E #2A5A0E #0E505A #3E0E5A
split-complementary
#5A180E #0E5A3E #0E2A5A
monochromatic
#1A0704 #250A06 #5A180E #8F2616 #C4341E

Accessibility & contrast

On white

13.36
#5A180E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A180E
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A180E#FFFFFF#000000##FFFFFF
##5A180E1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a180e;
/* rgb */ color: rgb(90, 24, 14);
/* oklch */ color: oklch(31.7% 0.099 31.4);
Tailwind
colors: {
  custom: {
    50: '#8f594d',
    500: '#5a180e',
    950: '#000000',
  },
}
SCSS
$custom: #5a180e;
$custom-light: #8f594d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a180e",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 14
  },
  "hsl": {
    "h": 7.895,
    "s": 73.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31711,
    "c": 0.09866,
    "h": 31.4
  },
  "luminance": 0.02859
}

Semantic roles & 50–950 ramp

primary
#5A180E
secondary
#308794
accent
#D8F038
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5A180E

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

Preview Lab → · Contrast checker → · Palette generator →

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