#5A1212#5A1212

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

Color values

HEX#5A1212
RGBrgb(90, 18, 18)
HSLhsl(0, 67%, 21%)
HSVhsv(0, 80%, 35%)
CMYKcmyk(0%, 80%, 80%, 64.7%)
CIE-LABlab(18.59, 32.37, 19.96)
CIE-LCHlch(18.59, 38.03, 31.67°)
OKLaboklab(31.07% 0.0937 0.0451)
OKLCHoklch(31.07% 0.104 25.7)
XYZxyz(4.5425, 2.6506, 0.8446)
Luminance0.0265 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1212 #125A5A
analogous
#5A1236 #5A1212 #5A3612
triadic
#5A1212 #125A12 #12125A
tetradic
#5A1212 #365A12 #125A5A #36125A
square
#5A1212 #365A12 #125A5A #36125A
split-complementary
#5A1212 #125A36 #12365A
monochromatic
#1A0505 #270808 #5A1212 #8D1C1C #C02626

Accessibility & contrast

On white

13.73
#5A1212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1212
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1212#FFFFFF#000000##FFFFFF
##5A12121.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272311
Deuteranopia (green-blind)
#39330F
Tritanopia (blue-blind)
#640013
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a1212;
/* rgb */ color: rgb(90, 18, 18);
/* oklch */ color: oklch(31.1% 0.104 25.7);
Tailwind
colors: {
  custom: {
    50: '#8f5650',
    500: '#5a1212',
    950: '#000000',
  },
}
SCSS
$custom: #5a1212;
$custom-light: #8f5650;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1212",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 18
  },
  "hsl": {
    "h": 0,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31065,
    "c": 0.104,
    "h": 25.7
  },
  "luminance": 0.0265
}

Semantic roles & 50–950 ramp

primary
#5A1212
secondary
#359393
accent
#EAEA3E
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0302
muted
#7E7878

Preview Lab

Preview with #5A1212

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

Preview Lab → · Contrast checker → · Palette generator →

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