#5A221B#5A221B

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

Color values

HEX#5A221B
RGBrgb(90, 34, 27)
HSLhsl(7, 54%, 23%)
HSVhsv(7, 70%, 35%)
CMYKcmyk(0%, 62.2%, 70%, 64.7%)
CIE-LABlab(21.57, 25.24, 17.59)
CIE-LCHlch(21.57, 30.77, 34.87°)
OKLaboklab(33.35% 0.0734 0.0414)
OKLCHoklch(33.35% 0.084 29.4)
XYZxyz(4.9868, 3.3975, 1.4299)
Luminance0.0340 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A221B #1B535A
analogous
#5A1B33 #5A221B #5A411B
triadic
#5A221B #1B5A22 #221B5A
tetradic
#5A221B #335A1B #1B535A #411B5A
square
#5A221B #335A1B #1B535A #411B5A
split-complementary
#5A221B #1B5A41 #1B335A
monochromatic
#180907 #2B100D #5A221B #893429 #B84637

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A221B#FFFFFF#000000##FFFFFF
##5A221B1.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)
#312C1A
Deuteranopia (green-blind)
#3E381A
Tritanopia (blue-blind)
#631721
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a221b;
/* rgb */ color: rgb(90, 34, 27);
/* oklch */ color: oklch(33.4% 0.084 29.4);
Tailwind
colors: {
  custom: {
    50: '#8d5f57',
    500: '#5a221b',
    950: '#000000',
  },
}
SCSS
$custom: #5a221b;
$custom-light: #8d5f57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a221b",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 27
  },
  "hsl": {
    "h": 6.667,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3335,
    "c": 0.08431,
    "h": 29.4
  },
  "luminance": 0.03397
}

Semantic roles & 50–950 ramp

primary
#5A221B
secondary
#418790
accent
#CDDD4B
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0503
muted
#7E7978

Preview Lab

Preview with #5A221B

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

Preview Lab → · Contrast checker → · Palette generator →

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