#5A171E#5A171E

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

Color values

HEX#5A171E
RGBrgb(90, 23, 30)
HSLhsl(354, 59%, 22%)
HSVhsv(354, 74%, 35%)
CMYKcmyk(0%, 74.4%, 66.7%, 64.7%)
CIE-LABlab(19.56, 30.99, 13.01)
CIE-LCHlch(19.56, 33.61, 22.77°)
OKLaboklab(31.86% 0.0922 0.0315)
OKLCHoklch(31.86% 0.097 18.8)
XYZxyz(4.7577, 2.8809, 1.5336)
Luminance0.0288 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A171E #175A53
analogous
#5A1740 #5A171E #5A3117
triadic
#5A171E #1E5A17 #171E5A
tetradic
#5A171E #405A17 #175A53 #31175A
square
#5A171E #405A17 #175A53 #31175A
split-complementary
#5A171E #175A31 #17405A
monochromatic
#180608 #290B0E #5A171E #8B232E #BB303E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A171E#FFFFFF#000000##FFFFFF
##5A171E1.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)
#29261E
Deuteranopia (green-blind)
#3A351C
Tritanopia (blue-blind)
#63061A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a171e;
/* rgb */ color: rgb(90, 23, 30);
/* oklch */ color: oklch(31.9% 0.097 18.8);
Tailwind
colors: {
  custom: {
    50: '#8e5959',
    500: '#5a171e',
    950: '#000000',
  },
}
SCSS
$custom: #5a171e;
$custom-light: #8e5959;
$custom-dark: #000000;
JSON
{
  "hex": "#5a171e",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 353.731,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31859,
    "c": 0.09743,
    "h": 18.8
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#5A171E
secondary
#3C9188
accent
#E2D245
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A171E

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

Preview Lab → · Contrast checker → · Palette generator →

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