#5A1218#5A1218

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

Color values

HEX#5A1218
RGBrgb(90, 18, 24)
HSLhsl(355, 67%, 21%)
HSVhsv(355, 80%, 35%)
CMYKcmyk(0%, 80%, 73.3%, 64.7%)
CIE-LABlab(18.68, 32.69, 16.07)
CIE-LCHlch(18.68, 36.43, 26.18°)
OKLaboklab(31.17% 0.0962 0.0376)
OKLCHoklch(31.17% 0.103 21.3)
XYZxyz(4.5981, 2.6729, 1.1378)
Luminance0.0267 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1218 #125A54
analogous
#5A123C #5A1218 #5A3012
triadic
#5A1218 #185A12 #12185A
tetradic
#5A1218 #3C5A12 #125A54 #30125A
square
#5A1218 #3C5A12 #125A54 #30125A
split-complementary
#5A1218 #125A30 #123C5A
monochromatic
#1A0507 #27080A #5A1218 #8D1C26 #C02633

Accessibility & contrast

On white

13.69
#5A1218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1218
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1218#FFFFFF#000000##FFFFFF
##5A12181.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1218;
/* rgb */ color: rgb(90, 18, 24);
/* oklch */ color: oklch(31.2% 0.103 21.3);
Tailwind
colors: {
  custom: {
    50: '#8f5754',
    500: '#5a1218',
    950: '#000000',
  },
}
SCSS
$custom: #5a1218;
$custom-light: #8f5754;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1218",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 24
  },
  "hsl": {
    "h": 355,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31168,
    "c": 0.10332,
    "h": 21.3
  },
  "luminance": 0.02672
}

Semantic roles & 50–950 ramp

primary
#5A1218
secondary
#35938B
accent
#EADB3E
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0D0302
muted
#7E7878

Preview Lab

Preview with #5A1218

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

Preview Lab → · Contrast checker → · Palette generator →

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