#5A1118#5A1118

#5A1118 is a dark, moderate red. Relative luminance 0.026; OKLCH L 31.1% C 0.104 H 20.9°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#5A1118
RGBrgb(90, 17, 24)
HSLhsl(354, 68%, 21%)
HSVhsv(354, 81%, 35%)
CMYKcmyk(0%, 81.1%, 73.3%, 64.7%)
CIE-LABlab(18.55, 33.07, 15.90)
CIE-LCHlch(18.55, 36.70, 25.68°)
OKLaboklab(31.07% 0.0975 0.0372)
OKLCHoklch(31.07% 0.104 20.9)
XYZxyz(4.5823, 2.6412, 1.1325)
Luminance0.0264 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1118 #115A53
analogous
#5A113C #5A1118 #5A2E11
triadic
#5A1118 #185A11 #11185A
tetradic
#5A1118 #3C5A11 #115A53 #2E115A
square
#5A1118 #3C5A11 #115A53 #2E115A
split-complementary
#5A1118 #115A2E #113C5A
monochromatic
#1A0507 #27070A #5A1118 #8D1B26 #C12433

Accessibility & contrast

On white

13.74
#5A1118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#5A1118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1118
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1118#FFFFFF#000000##FFFFFF
##5A11181.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262318
Deuteranopia (green-blind)
#393316
Tritanopia (blue-blind)
#640014
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a1118;
/* rgb */ color: rgb(90, 17, 24);
/* oklch */ color: oklch(31.1% 0.104 20.9);
Tailwind
colors: {
  custom: {
    50: '#8f5654',
    500: '#5a1118',
    950: '#000000',
  },
}
SCSS
$custom: #5a1118;
$custom-light: #8f5654;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1118",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 24
  },
  "hsl": {
    "h": 354.247,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31066,
    "c": 0.10433,
    "h": 20.9
  },
  "luminance": 0.02641
}

Semantic roles & 50–950 ramp

primary
#5A1118
secondary
#34938A
accent
#EBDA3D
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0D0302
muted
#7E7878

Preview Lab

Preview with #5A1118

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

Preview Lab → · Contrast checker → · Palette generator →

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