#5A171A#5A171A

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

Color values

HEX#5A171A
RGBrgb(90, 23, 26)
HSLhsl(357, 59%, 22%)
HSVhsv(357, 74%, 35%)
CMYKcmyk(0%, 74.4%, 71.1%, 64.7%)
CIE-LABlab(19.48, 30.71, 15.68)
CIE-LCHlch(19.48, 34.49, 27.05°)
OKLaboklab(31.78% 0.0904 0.037)
OKLCHoklch(31.78% 0.098 22.3)
XYZxyz(4.7098, 2.8617, 1.2814)
Luminance0.0286 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A171A #175A57
analogous
#5A173C #5A171A #5A3517
triadic
#5A171A #1A5A17 #171A5A
tetradic
#5A171A #3C5A17 #175A57 #35175A
square
#5A171A #3C5A17 #175A57 #35175A
split-complementary
#5A171A #175A35 #173C5A
monochromatic
#180607 #290B0C #5A171A #8B2328 #BB3036

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A171A#FFFFFF#000000##FFFFFF
##5A171A1.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)
#29261A
Deuteranopia (green-blind)
#3A3418
Tritanopia (blue-blind)
#630519
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a171a;
/* rgb */ color: rgb(90, 23, 26);
/* oklch */ color: oklch(31.8% 0.098 22.3);
Tailwind
colors: {
  custom: {
    50: '#8e5956',
    500: '#5a171a',
    950: '#000000',
  },
}
SCSS
$custom: #5a171a;
$custom-light: #8e5956;
$custom-dark: #000000;
JSON
{
  "hex": "#5a171a",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 357.313,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31775,
    "c": 0.09772,
    "h": 22.3
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#5A171A
secondary
#3C918D
accent
#E2DB45
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A171A

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

Preview Lab → · Contrast checker → · Palette generator →

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