#5A1020#5A1020

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

Color values

HEX#5A1020
RGBrgb(90, 16, 32)
HSLhsl(347, 70%, 21%)
HSVhsv(347, 82%, 35%)
CMYKcmyk(0%, 82.2%, 64.4%, 64.7%)
CIE-LABlab(18.58, 33.99, 10.31)
CIE-LCHlch(18.58, 35.51, 16.88°)
OKLaboklab(31.15% 0.1022 0.0254)
OKLCHoklch(31.15% 0.105 13.9)
XYZxyz(4.6629, 2.6492, 1.6320)
Luminance0.0265 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1020 #105A4A
analogous
#5A1045 #5A1020 #5A2510
triadic
#5A1020 #205A10 #10205A
tetradic
#5A1020 #455A10 #105A4A #25105A
square
#5A1020 #455A10 #105A4A #25105A
split-complementary
#5A1020 #105A25 #10455A
monochromatic
#1A0509 #26070E #5A1020 #8E1932 #C22245

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A1020#FFFFFF#000000##FFFFFF
##5A10201.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)
#242320
Deuteranopia (green-blind)
#37331E
Tritanopia (blue-blind)
#630017
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a1020;
/* rgb */ color: rgb(90, 16, 32);
/* oklch */ color: oklch(31.1% 0.105 13.9);
Tailwind
colors: {
  custom: {
    50: '#8e565b',
    500: '#5a1020',
    950: '#000000',
  },
}
SCSS
$custom: #5a1020;
$custom-light: #8e565b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1020",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 32
  },
  "hsl": {
    "h": 347.027,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31146,
    "c": 0.10532,
    "h": 13.9
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#5A1020
secondary
#33937E
accent
#EDC63B
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0304
muted
#7E7879

Preview Lab

Preview with #5A1020

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

Preview Lab → · Contrast checker → · Palette generator →

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