#5A1817#5A1817

#5A1817 is a dark, moderate red. Relative luminance 0.029; OKLCH L 31.8% C 0.097 H 25.3°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#5A1817
RGBrgb(90, 24, 23)
HSLhsl(1, 59%, 22%)
HSVhsv(1, 74%, 35%)
CMYKcmyk(0%, 73.3%, 74.4%, 64.7%)
CIE-LABlab(19.60, 30.07, 17.87)
CIE-LCHlch(19.60, 34.98, 30.72°)
OKLaboklab(31.84% 0.0877 0.0414)
OKLCHoklch(31.84% 0.097 25.3)
XYZxyz(4.6982, 2.8895, 1.1208)
Luminance0.0289 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1817 #17595A
analogous
#5A1737 #5A1817 #5A3A17
triadic
#5A1817 #175A18 #18175A
tetradic
#5A1817 #375A17 #17595A #3A175A
square
#5A1817 #375A17 #17595A #3A175A
split-complementary
#5A1817 #175A3A #17375A
monochromatic
#180606 #290B0B #5A1817 #8B2523 #BB3230

Accessibility & contrast

On white

13.31
#5A1817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1817
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1817#FFFFFF#000000##FFFFFF
##5A18171.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2616
Deuteranopia (green-blind)
#3B3515
Tritanopia (blue-blind)
#640618
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a1817;
/* rgb */ color: rgb(90, 24, 23);
/* oklch */ color: oklch(31.8% 0.097 25.3);
Tailwind
colors: {
  custom: {
    50: '#8e5954',
    500: '#5a1817',
    950: '#000000',
  },
}
SCSS
$custom: #5a1817;
$custom-light: #8e5954;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1817",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 23
  },
  "hsl": {
    "h": 0.896,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31843,
    "c": 0.09697,
    "h": 25.3
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#5A1817
secondary
#3C9091
accent
#E0E245
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0D0402
muted
#7E7978

Preview Lab

Preview with #5A1817

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

Preview Lab → · Contrast checker → · Palette generator →

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