#5A1313#5A1313

#5A1313 is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.2% C 0.103 H 25.5°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#5A1313
RGBrgb(90, 19, 19)
HSLhsl(0, 65%, 21%)
HSVhsv(0, 79%, 35%)
CMYKcmyk(0%, 78.9%, 78.9%, 64.7%)
CIE-LABlab(18.74, 32.02, 19.53)
CIE-LCHlch(18.74, 37.51, 31.38°)
OKLaboklab(31.19% 0.0929 0.0442)
OKLCHoklch(31.19% 0.103 25.5)
XYZxyz(4.5674, 2.6871, 0.8941)
Luminance0.0269 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1313 #135A5A
analogous
#5A1337 #5A1313 #5A3713
triadic
#5A1313 #135A13 #13135A
tetradic
#5A1313 #375A13 #135A5A #37135A
square
#5A1313 #375A13 #135A5A #37135A
split-complementary
#5A1313 #135A37 #13375A
monochromatic
#190505 #270808 #5A1313 #8D1E1E #BF2828

Accessibility & contrast

On white

13.66
#5A1313 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#5A1313 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1313
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1313#FFFFFF#000000##FFFFFF
##5A13131.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282412
Deuteranopia (green-blind)
#3A3310
Tritanopia (blue-blind)
#640014
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a1313;
/* rgb */ color: rgb(90, 19, 19);
/* oklch */ color: oklch(31.2% 0.103 25.5);
Tailwind
colors: {
  custom: {
    50: '#8f5750',
    500: '#5a1313',
    950: '#000000',
  },
}
SCSS
$custom: #5a1313;
$custom-light: #8f5750;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1313",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 19
  },
  "hsl": {
    "h": 0,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31188,
    "c": 0.10288,
    "h": 25.5
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#5A1313
secondary
#379292
accent
#E8E840
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0302
muted
#7E7878

Preview Lab

Preview with #5A1313

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

Preview Lab → · Contrast checker → · Palette generator →

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