#5A1122#5A1122

#5A1122 is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.3% C 0.104 H 12.6°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#5A1122
RGBrgb(90, 17, 34)
HSLhsl(346, 68%, 21%)
HSVhsv(346, 81%, 35%)
CMYKcmyk(0%, 81.1%, 62.2%, 64.7%)
CIE-LABlab(18.76, 33.77, 9.13)
CIE-LCHlch(18.76, 34.99, 15.12°)
OKLaboklab(31.29% 0.1019 0.0227)
OKLCHoklch(31.29% 0.104 12.6)
XYZxyz(4.7061, 2.6907, 1.7846)
Luminance0.0269 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1122 #115A49
analogous
#5A1146 #5A1122 #5A2411
triadic
#5A1122 #225A11 #11225A
tetradic
#5A1122 #465A11 #115A49 #24115A
square
#5A1122 #465A11 #115A49 #24115A
split-complementary
#5A1122 #115A24 #11465A
monochromatic
#1A050A #27070F #5A1122 #8D1B35 #C12449

Accessibility & contrast

On white

13.65
#5A1122 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1122
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1122#FFFFFF#000000##FFFFFF
##5A11221.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252422
Deuteranopia (green-blind)
#373320
Tritanopia (blue-blind)
#630018
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a1122;
/* rgb */ color: rgb(90, 17, 34);
/* oklch */ color: oklch(31.3% 0.104 12.6);
Tailwind
colors: {
  custom: {
    50: '#8e575c',
    500: '#5a1122',
    950: '#000000',
  },
}
SCSS
$custom: #5a1122;
$custom-light: #8e575c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1122",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 34
  },
  "hsl": {
    "h": 346.027,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31294,
    "c": 0.10443,
    "h": 12.6
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#5A1122
secondary
#34937D
accent
#EBC23D
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0304
muted
#7E7879

Preview Lab

Preview with #5A1122

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

Preview Lab → · Contrast checker → · Palette generator →

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