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
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is brown accessible? Contrast with white and black
7.08:1
AA pass AA large pass AAA pass
2.96:1
AA fail AA large fail AAA fail
- As a background, brown works best with white text.
- For body text on black, use the lighter variant .
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.
#4e4729 Red-blind. Reds look dark and brownish; red and green are easily confused.
#6d6226 Green-blind, the most common strong form. Red, green, orange and brown look similar.
#b6002c Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#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).
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.