#5A221C#5A221C

#5A221C is a dark, moderate red. Relative luminance 0.034; OKLCH L 33.4% C 0.084 H 28.5°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#5A221C
RGBrgb(90, 34, 28)
HSLhsl(6, 53%, 23%)
HSVhsv(6, 69%, 35%)
CMYKcmyk(0%, 62.2%, 68.9%, 64.7%)
CIE-LABlab(21.59, 25.31, 16.95)
CIE-LCHlch(21.59, 30.46, 33.80°)
OKLaboklab(33.37% 0.0739 0.0401)
OKLCHoklch(33.37% 0.084 28.5)
XYZxyz(4.9985, 3.4022, 1.4919)
Luminance0.0340 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A221C #1C545A
analogous
#5A1C35 #5A221C #5A411C
triadic
#5A221C #1C5A22 #221C5A
tetradic
#5A221C #355A1C #1C545A #411C5A
square
#5A221C #355A1C #1C545A #411C5A
split-complementary
#5A221C #1C5A41 #1C355A
monochromatic
#170907 #2B100D #5A221C #89342B #B74539

Accessibility & contrast

On white

12.50
#5A221C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5A221C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A221C
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A221C#FFFFFF#000000##FFFFFF
##5A221C1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302C1B
Deuteranopia (green-blind)
#3E381B
Tritanopia (blue-blind)
#631721
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a221c;
/* rgb */ color: rgb(90, 34, 28);
/* oklch */ color: oklch(33.4% 0.084 28.5);
Tailwind
colors: {
  custom: {
    50: '#8d5f58',
    500: '#5a221c',
    950: '#000000',
  },
}
SCSS
$custom: #5a221c;
$custom-light: #8d5f58;
$custom-dark: #000000;
JSON
{
  "hex": "#5a221c",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 28
  },
  "hsl": {
    "h": 5.806,
    "s": 52.542,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33369,
    "c": 0.08406,
    "h": 28.5
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

primary
#5A221C
secondary
#42888F
accent
#CEDC4C
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0503
muted
#7E7978

Preview Lab

Preview with #5A221C

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

Preview Lab → · Contrast checker → · Palette generator →

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