#5A170D#5A170D

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

Color values

HEX#5A170D
RGBrgb(90, 23, 13)
HSLhsl(8, 75%, 20%)
HSVhsv(8, 86%, 35%)
CMYKcmyk(0%, 74.4%, 85.6%, 64.7%)
CIE-LABlab(19.29, 30.04, 23.50)
CIE-LCHlch(19.29, 38.14, 38.04°)
OKLaboklab(31.57% 0.0853 0.052)
OKLCHoklch(31.57% 0.1 31.4)
XYZxyz(4.5960, 2.8162, 0.6823)
Luminance0.0282 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A170D #0D505A
analogous
#5A0D2A #5A170D #5A3D0D
triadic
#5A170D #0D5A17 #170D5A
tetradic
#5A170D #2A5A0D #0D505A #3D0D5A
square
#5A170D #2A5A0D #0D505A #3D0D5A
split-complementary
#5A170D #0D5A3D #0D2A5A
monochromatic
#1B0704 #250905 #5A170D #8F2515 #C5321C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A170D#FFFFFF#000000##FFFFFF
##5A170D1.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)
#2B250B
Deuteranopia (green-blind)
#3B340A
Tritanopia (blue-blind)
#640215
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a170d;
/* rgb */ color: rgb(90, 23, 13);
/* oklch */ color: oklch(31.6% 0.100 31.4);
Tailwind
colors: {
  custom: {
    50: '#8f594d',
    500: '#5a170d',
    950: '#000000',
  },
}
SCSS
$custom: #5a170d;
$custom-light: #8f594d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a170d",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 13
  },
  "hsl": {
    "h": 7.792,
    "s": 74.757,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31573,
    "c": 0.09989,
    "h": 31.4
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#5A170D
secondary
#2E8794
accent
#D9F136
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5A170D

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

Preview Lab → · Contrast checker → · Palette generator →

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