Skip to content

Brown color #A52A2A

rgb(165, 42, 42) · oklch(48.1% 0.16 25.6)

Brown (#A52A2A) is a dark, strong, warm red. It mixes 65% red, 16% green and 16% blue, with a perceived lightness of 48.1% in OKLCH. White text reads best on it (7.08:1 vs 2.96:1). The closest other CSS color is Fire Brick (#B22222). For people with protanopia it shifts the most, toward #4E4729.

Brown color codes

HEX
RGB
HSL
HSV / HSB
OKLCH
CMYK
CSS keyword

Click a value to copy it. Convert any other color with the color converter.

Shades, tints and tones of brown

Shades mix brown with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.

Tints (lighter)

Shades (darker)

Tones (muted)

Brown as a UI color scale (50–950)

An 11-step scale for design systems, with brown placed at step 700. Copy it as a Tailwind v4 theme below.

Colors that go with brown

Harmonies are computed on the OKLCH hue wheel, keeping brown’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.

Complementary

Edit

The base color and the hue directly opposite it. Maximum contrast; use one as the accent.

Analogous

Edit

Neighbors 30° either side on the hue wheel. Calm and cohesive, common in nature.

Triadic

Edit

Three hues spaced 120° apart. Vibrant but balanced; let one dominate.

Split complementary

Edit

The base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.

Tetradic (rectangle)

Edit

Two complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.

Monochromatic

Edit

One hue at different lightness levels. Safe, elegant, and easy to read.

Is brown accessible? Contrast with white and black

Brown text on white

7.08:1

AA pass AA large pass AAA pass

Brown text on black

2.96:1

AA fail AA large fail AAA fail

Check brown against any other color

How brown looks with color blindness

Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.

Protanopia: #4e4729
Red-blind. Reds look dark and brownish; red and green are easily confused.
Deuteranopia: #6d6226
Green-blind, the most common strong form. Red, green, orange and brown look similar.
Tritanopia: #b6002c
Blue-blind and rare. Blue and green are confused, as are yellow and pink.
Achromatopsia: #585858
Total color blindness, very rare. Only lightness differences are visible.

Colors similar to brown

The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).

ΔE 2.6 Fire Brick
#b22222
ΔE 7.6 Saddle Brown
#8b4513
ΔE 7.8 Sienna
#a0522d
ΔE 8.2 Dark Red
#8b0000

Use brown in CSS and Tailwind

CSS custom properties

:root {
  --brown: #a52a2a;
  --brown-rgb: 165 42 42;
}

.text-brown { color: var(--brown); }
.bg-brown { background-color: var(--brown); }

Tailwind v4 theme

@theme {
  --color-brown-50: #f7f6f6;
  --color-brown-100: #f1ebeb;
  --color-brown-200: #e9d6d4;
  --color-brown-300: #e6b2ad;
  --color-brown-400: #e97e75;
  --color-brown-500: #e83f3f;
  --color-brown-600: #c13333;
  --color-brown-700: #a52a2a;
  --color-brown-800: #722a27;
  --color-brown-900: #552421;
  --color-brown-950: #311614;
}

Make a gradient from brown: open the gradient generator.

Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.

More red colors