#5A1417#5A1417

#5A1417 is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.4% C 0.101 H 23.1°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#5A1417
RGBrgb(90, 20, 23)
HSLhsl(357, 64%, 22%)
HSVhsv(357, 78%, 35%)
CMYKcmyk(0%, 77.8%, 74.4%, 64.7%)
CIE-LABlab(18.96, 31.83, 17.10)
CIE-LCHlch(18.96, 36.13, 28.24°)
OKLaboklab(31.37% 0.0933 0.0397)
OKLCHoklch(31.37% 0.101 23.1)
XYZxyz(4.6218, 2.7365, 1.0953)
Luminance0.0274 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1417 #145A57
analogous
#5A143A #5A1417 #5A3414
triadic
#5A1417 #175A14 #14175A
tetradic
#5A1417 #3A5A14 #145A57 #34145A
square
#5A1417 #3A5A14 #145A57 #34145A
split-complementary
#5A1417 #145A34 #143A5A
monochromatic
#190606 #28090A #5A1417 #8C1F24 #BE2A31

Accessibility & contrast

On white

13.57
#5A1417 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#5A1417 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1417
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1417#FFFFFF#000000##FFFFFF
##5A14171.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282416
Deuteranopia (green-blind)
#3A3415
Tritanopia (blue-blind)
#640016
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a1417;
/* rgb */ color: rgb(90, 20, 23);
/* oklch */ color: oklch(31.4% 0.101 23.1);
Tailwind
colors: {
  custom: {
    50: '#8f5853',
    500: '#5a1417',
    950: '#000000',
  },
}
SCSS
$custom: #5a1417;
$custom-light: #8f5853;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1417",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 23
  },
  "hsl": {
    "h": 357.429,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31366,
    "c": 0.10135,
    "h": 23.1
  },
  "luminance": 0.02736
}

Semantic roles & 50–950 ramp

primary
#5A1417
secondary
#38928E
accent
#E7E041
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0D0302
muted
#7E7878

Preview Lab

Preview with #5A1417

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

Preview Lab → · Contrast checker → · Palette generator →

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