#5A170E#5A170E

#5A170E is a dark, moderate red. Relative luminance 0.028; OKLCH L 31.6% C 0.100 H 30.8°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#5A170E
RGBrgb(90, 23, 14)
HSLhsl(7, 73%, 20%)
HSVhsv(7, 84%, 35%)
CMYKcmyk(0%, 74.4%, 84.4%, 64.7%)
CIE-LABlab(19.30, 30.08, 23.02)
CIE-LCHlch(19.30, 37.88, 37.44°)
OKLaboklab(31.59% 0.0856 0.0511)
OKLCHoklch(31.59% 0.1 30.8)
XYZxyz(4.6026, 2.8189, 0.7171)
Luminance0.0282 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A170E #0E515A
analogous
#5A0E2B #5A170E #5A3D0E
triadic
#5A170E #0E5A17 #170E5A
tetradic
#5A170E #2B5A0E #0E515A #3D0E5A
square
#5A170E #2B5A0E #0E515A #3D0E5A
split-complementary
#5A170E #0E5A3D #0E2B5A
monochromatic
#1A0704 #250906 #5A170E #8F2516 #C4321E

Accessibility & contrast

On white

13.43
#5A170E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#5A170E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A170E
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A170E#FFFFFF#000000##FFFFFF
##5A170E1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B250C
Deuteranopia (green-blind)
#3B340B
Tritanopia (blue-blind)
#640215
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a170e;
/* rgb */ color: rgb(90, 23, 14);
/* oklch */ color: oklch(31.6% 0.100 30.8);
Tailwind
colors: {
  custom: {
    50: '#8f594d',
    500: '#5a170e',
    950: '#000000',
  },
}
SCSS
$custom: #5a170e;
$custom-light: #8f594d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a170e",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 14
  },
  "hsl": {
    "h": 7.105,
    "s": 73.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31585,
    "c": 0.09969,
    "h": 30.8
  },
  "luminance": 0.02818
}

Semantic roles & 50–950 ramp

primary
#5A170E
secondary
#308894
accent
#DAF038
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5A170E

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

Preview Lab → · Contrast checker → · Palette generator →

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