#5A170C#5A170C

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

Color values

HEX#5A170C
RGBrgb(90, 23, 12)
HSLhsl(8, 76%, 20%)
HSVhsv(8, 87%, 35%)
CMYKcmyk(0%, 74.4%, 86.7%, 64.7%)
CIE-LABlab(19.28, 30.00, 23.96)
CIE-LCHlch(19.28, 38.39, 38.61°)
OKLaboklab(31.56% 0.0849 0.053)
OKLCHoklch(31.56% 0.1 31.9)
XYZxyz(4.5897, 2.8137, 0.6492)
Luminance0.0281 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A170C #0C4F5A
analogous
#5A0C28 #5A170C #5A3E0C
triadic
#5A170C #0C5A17 #170C5A
tetradic
#5A170C #285A0C #0C4F5A #3E0C5A
square
#5A170C #285A0C #0C4F5A #3E0C5A
split-complementary
#5A170C #0C5A3E #0C285A
monochromatic
#1B0704 #240905 #5A170C #902513 #C6331A

Accessibility & contrast

On white

13.44
#5A170C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A170C
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A170C#FFFFFF#000000##FFFFFF
##5A170C1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a170c;
/* rgb */ color: rgb(90, 23, 12);
/* oklch */ color: oklch(31.6% 0.100 31.9);
Tailwind
colors: {
  custom: {
    50: '#8f594c',
    500: '#5a170c',
    950: '#000000',
  },
}
SCSS
$custom: #5a170c;
$custom-light: #8f594c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a170c",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 12
  },
  "hsl": {
    "h": 8.462,
    "s": 76.471,
    "l": 20
  },
  "oklch": {
    "l": 0.31562,
    "c": 0.10009,
    "h": 31.9
  },
  "luminance": 0.02813
}

Semantic roles & 50–950 ramp

primary
#5A170C
secondary
#2D8695
accent
#D8F335
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5A170C

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

Preview Lab → · Contrast checker → · Palette generator →

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