#5A201C#5A201C

#5A201C is a dark, moderate red. Relative luminance 0.033; OKLCH L 33.1% C 0.087 H 26.8°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#5A201C
RGBrgb(90, 32, 28)
HSLhsl(4, 53%, 23%)
HSVhsv(4, 69%, 35%)
CMYKcmyk(0%, 64.4%, 68.9%, 64.7%)
CIE-LABlab(21.17, 26.40, 16.44)
CIE-LCHlch(21.17, 31.10, 31.91°)
OKLaboklab(33.06% 0.0773 0.039)
OKLCHoklch(33.06% 0.087 26.8)
XYZxyz(4.9430, 3.2912, 1.4733)
Luminance0.0329 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A201C #1C565A
analogous
#5A1C37 #5A201C #5A3F1C
triadic
#5A201C #1C5A20 #201C5A
tetradic
#5A201C #375A1C #1C565A #3F1C5A
square
#5A201C #375A1C #1C565A #3F1C5A
split-complementary
#5A201C #1C5A3F #1C375A
monochromatic
#170807 #2B0F0D #5A201C #89312B #B74139

Accessibility & contrast

On white

12.66
#5A201C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A201C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A201C
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A201C#FFFFFF#000000##FFFFFF
##5A201C1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2B1B
Deuteranopia (green-blind)
#3D381B
Tritanopia (blue-blind)
#63141F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a201c;
/* rgb */ color: rgb(90, 32, 28);
/* oklch */ color: oklch(33.1% 0.087 26.8);
Tailwind
colors: {
  custom: {
    50: '#8d5e58',
    500: '#5a201c',
    950: '#000000',
  },
}
SCSS
$custom: #5a201c;
$custom-light: #8d5e58;
$custom-dark: #000000;
JSON
{
  "hex": "#5a201c",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 28
  },
  "hsl": {
    "h": 3.871,
    "s": 52.542,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33057,
    "c": 0.08654,
    "h": 26.8
  },
  "luminance": 0.03291
}

Semantic roles & 50–950 ramp

primary
#5A201C
secondary
#428B8F
accent
#D3DC4C
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A201C

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

Preview Lab → · Contrast checker → · Palette generator →

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