#5A171F#5A171F

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

Color values

HEX#5A171F
RGBrgb(90, 23, 31)
HSLhsl(353, 59%, 22%)
HSVhsv(353, 74%, 35%)
CMYKcmyk(0%, 74.4%, 65.6%, 64.7%)
CIE-LABlab(19.58, 31.07, 12.34)
CIE-LCHlch(19.58, 33.43, 21.67°)
OKLaboklab(31.88% 0.0927 0.03)
OKLCHoklch(31.88% 0.097 17.9)
XYZxyz(4.7706, 2.8861, 1.6019)
Luminance0.0289 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A171F #175A52
analogous
#5A1741 #5A171F #5A3117
triadic
#5A171F #1F5A17 #171F5A
tetradic
#5A171F #415A17 #175A52 #31175A
square
#5A171F #415A17 #175A52 #31175A
split-complementary
#5A171F #175A31 #17415A
monochromatic
#180608 #290B0E #5A171F #8B2330 #BB3041

Accessibility & contrast

On white

13.32
#5A171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A171F
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A171F#FFFFFF#000000##FFFFFF
##5A171F1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29261F
Deuteranopia (green-blind)
#3A351D
Tritanopia (blue-blind)
#63071A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a171f;
/* rgb */ color: rgb(90, 23, 31);
/* oklch */ color: oklch(31.9% 0.097 17.9);
Tailwind
colors: {
  custom: {
    50: '#8e595a',
    500: '#5a171f',
    950: '#000000',
  },
}
SCSS
$custom: #5a171f;
$custom-light: #8e595a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a171f",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 352.836,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31882,
    "c": 0.0974,
    "h": 17.9
  },
  "luminance": 0.02885
}

Semantic roles & 50–950 ramp

primary
#5A171F
secondary
#3C9187
accent
#E2D045
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A171F

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

Preview Lab → · Contrast checker → · Palette generator →

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