#5A180C#5A180C

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

Color values

HEX#5A180C
RGBrgb(90, 24, 12)
HSLhsl(9, 76%, 20%)
HSVhsv(9, 87%, 35%)
CMYKcmyk(0%, 73.3%, 86.7%, 64.7%)
CIE-LABlab(19.45, 29.54, 24.15)
CIE-LCHlch(19.45, 38.16, 39.27°)
OKLaboklab(31.69% 0.0835 0.0533)
OKLCHoklch(31.69% 0.099 32.6)
XYZxyz(4.6100, 2.8542, 0.6559)
Luminance0.0285 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A180C #0C4E5A
analogous
#5A0C27 #5A180C #5A3F0C
triadic
#5A180C #0C5A18 #180C5A
tetradic
#5A180C #275A0C #0C4E5A #3F0C5A
square
#5A180C #275A0C #0C4E5A #3F0C5A
split-complementary
#5A180C #0C5A3F #0C275A
monochromatic
#1B0704 #240A05 #5A180C #902613 #C6351A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A180C#FFFFFF#000000##FFFFFF
##5A180C1.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)
#2B260A
Deuteranopia (green-blind)
#3C3409
Tritanopia (blue-blind)
#640316
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a180c;
/* rgb */ color: rgb(90, 24, 12);
/* oklch */ color: oklch(31.7% 0.099 32.6);
Tailwind
colors: {
  custom: {
    50: '#8f594c',
    500: '#5a180c',
    950: '#000000',
  },
}
SCSS
$custom: #5a180c;
$custom-light: #8f594c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a180c",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 12
  },
  "hsl": {
    "h": 9.231,
    "s": 76.471,
    "l": 20
  },
  "oklch": {
    "l": 0.31688,
    "c": 0.09907,
    "h": 32.6
  },
  "luminance": 0.02853
}

Semantic roles & 50–950 ramp

primary
#5A180C
secondary
#2D8595
accent
#D6F335
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5A180C

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

Preview Lab → · Contrast checker → · Palette generator →

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