#5A171B#5A171B

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

Color values

HEX#5A171B
RGBrgb(90, 23, 27)
HSLhsl(356, 59%, 22%)
HSVhsv(356, 74%, 35%)
CMYKcmyk(0%, 74.4%, 70%, 64.7%)
CIE-LABlab(19.50, 30.78, 15.02)
CIE-LCHlch(19.50, 34.25, 26.01°)
OKLaboklab(31.8% 0.0909 0.0357)
OKLCHoklch(31.8% 0.098 21.4)
XYZxyz(4.7212, 2.8663, 1.3413)
Luminance0.0287 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A171B #175A56
analogous
#5A173D #5A171B #5A3517
triadic
#5A171B #1B5A17 #171B5A
tetradic
#5A171B #3D5A17 #175A56 #35175A
square
#5A171B #3D5A17 #175A56 #35175A
split-complementary
#5A171B #175A35 #173D5A
monochromatic
#180607 #290B0C #5A171B #8B232A #BB3038

Accessibility & contrast

On white

13.35
#5A171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A171B
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A171B#FFFFFF#000000##FFFFFF
##5A171B1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29261B
Deuteranopia (green-blind)
#3A3419
Tritanopia (blue-blind)
#630519
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a171b;
/* rgb */ color: rgb(90, 23, 27);
/* oklch */ color: oklch(31.8% 0.098 21.4);
Tailwind
colors: {
  custom: {
    50: '#8e5957',
    500: '#5a171b',
    950: '#000000',
  },
}
SCSS
$custom: #5a171b;
$custom-light: #8e5957;
$custom-dark: #000000;
JSON
{
  "hex": "#5a171b",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 356.418,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31795,
    "c": 0.09762,
    "h": 21.4
  },
  "luminance": 0.02866
}

Semantic roles & 50–950 ramp

primary
#5A171B
secondary
#3C918C
accent
#E2D945
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A171B

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

Preview Lab → · Contrast checker → · Palette generator →

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