#5A170F#5A170F

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

Color values

HEX#5A170F
RGBrgb(90, 23, 15)
HSLhsl(6, 71%, 21%)
HSVhsv(6, 83%, 35%)
CMYKcmyk(0%, 74.4%, 83.3%, 64.7%)
CIE-LABlab(19.31, 30.12, 22.52)
CIE-LCHlch(19.31, 37.61, 36.78°)
OKLaboklab(31.6% 0.086 0.0501)
OKLCHoklch(31.6% 0.099 30.2)
XYZxyz(4.6096, 2.8216, 0.7538)
Luminance0.0282 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A170F #0F525A
analogous
#5A0F2C #5A170F #5A3C0F
triadic
#5A170F #0F5A17 #170F5A
tetradic
#5A170F #2C5A0F #0F525A #3C0F5A
square
#5A170F #2C5A0F #0F525A #3C0F5A
split-complementary
#5A170F #0F5A3C #0F2C5A
monochromatic
#1A0704 #260A06 #5A170F #8E2418 #C33220

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A170F#FFFFFF#000000##FFFFFF
##5A170F1.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)
#2A250E
Deuteranopia (green-blind)
#3B340C
Tritanopia (blue-blind)
#640216
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a170f;
/* rgb */ color: rgb(90, 23, 15);
/* oklch */ color: oklch(31.6% 0.099 30.2);
Tailwind
colors: {
  custom: {
    50: '#8f594e',
    500: '#5a170f',
    950: '#000000',
  },
}
SCSS
$custom: #5a170f;
$custom-light: #8f594e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a170f",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 15
  },
  "hsl": {
    "h": 6.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31597,
    "c": 0.09949,
    "h": 30.2
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#5A170F
secondary
#318994
accent
#DBEE3A
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5A170F

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

Preview Lab → · Contrast checker → · Palette generator →

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