#5A121A#5A121A

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

Color values

HEX#5A121A
RGBrgb(90, 18, 26)
HSLhsl(353, 67%, 21%)
HSVhsv(353, 80%, 35%)
CMYKcmyk(0%, 80%, 71.1%, 64.7%)
CIE-LABlab(18.72, 32.81, 14.73)
CIE-LCHlch(18.72, 35.97, 24.17°)
OKLaboklab(31.21% 0.0971 0.0349)
OKLCHoklch(31.21% 0.103 19.8)
XYZxyz(4.6197, 2.6815, 1.2514)
Luminance0.0268 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A121A #125A52
analogous
#5A123E #5A121A #5A2E12
triadic
#5A121A #1A5A12 #121A5A
tetradic
#5A121A #3E5A12 #125A52 #2E125A
square
#5A121A #3E5A12 #125A52 #2E125A
split-complementary
#5A121A #125A2E #123E5A
monochromatic
#1A0507 #27080B #5A121A #8D1C29 #C02637

Accessibility & contrast

On white

13.67
#5A121A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A121A
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A121A#FFFFFF#000000##FFFFFF
##5A121A1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241A
Deuteranopia (green-blind)
#393318
Tritanopia (blue-blind)
#630016
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a121a;
/* rgb */ color: rgb(90, 18, 26);
/* oklch */ color: oklch(31.2% 0.103 19.8);
Tailwind
colors: {
  custom: {
    50: '#8e5756',
    500: '#5a121a',
    950: '#000000',
  },
}
SCSS
$custom: #5a121a;
$custom-light: #8e5756;
$custom-dark: #000000;
JSON
{
  "hex": "#5a121a",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 26
  },
  "hsl": {
    "h": 353.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31208,
    "c": 0.1032,
    "h": 19.8
  },
  "luminance": 0.02681
}

Semantic roles & 50–950 ramp

primary
#5A121A
secondary
#359388
accent
#EAD73E
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A121A

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

Preview Lab → · Contrast checker → · Palette generator →

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