
The official CSS brown hex code is #A52A2A. If that surprises you, you’re not alone: CSS brown is a reddish, brick-like color, not the coffee or chocolate brown most people imagine.
This guide explains why, gives you every code for #A52A2A, and lists 30 brown shades from light tan to deep chocolate, grouped so you can quickly find the brown you actually need. It also covers palettes and which text colors are readable on brown.
Brown color codes (CSS brown)
| Format | Value |
|---|---|
| HEX | #A52A2A |
| RGB | rgb(165, 42, 42) |
| HSL | hsl(0, 59%, 41%) |
| CMYK (approx.) | 0, 75, 75, 35 |
| CSS name | brown |
Why is CSS brown so red?
Its hue is 0°, the same as pure red. The CSS color names were inherited from an older list of named colors, and “brown” in that list happens to be a dark, muted red. Most real-world browns have a hue around 20°–35°, which gives them their orange-yellow warmth.
If you want a classic brown, use one of the shades below, such as SaddleBrown (#8B4513) or a chocolate brown like #5C3B23, rather than the keyword.
30 shades of brown
CSS named browns
| Name | Hex | RGB |
|---|---|---|
| Brown | #A52A2A | 165, 42, 42 |
| SaddleBrown | #8B4513 | 139, 69, 19 |
| Sienna | #A0522D | 160, 82, 45 |
| Chocolate | #D2691E | 210, 105, 30 |
| Peru | #CD853F | 205, 133, 63 |
| SandyBrown | #F4A460 | 244, 164, 96 |
| RosyBrown | #BC8F8F | 188, 143, 143 |
Another naming quirk: CSS Chocolate (#D2691E) is a bright orange-brown, much lighter than chocolate.
Light browns
| Hex | RGB | Text on it |
|---|---|---|
| #D5B290 | 213, 178, 144 | Dark (9.53:1) |
| #C9AC82 | 201, 172, 130 | Dark (8.73:1) |
| #C59C77 | 197, 156, 119 | Dark (7.55:1) |
| #C9975E | 201, 151, 94 | Dark (7.26:1) |
| #B88F7A | 184, 143, 122 | Dark (6.52:1) |
| #B48664 | 180, 134, 100 | Dark (5.88:1) |
For pale tans, sands and taupes, see our beige guide, which covers that family in detail.
Medium and reddish browns
| Hex | RGB | Text on it |
|---|---|---|
| #9F7856 | 159, 120, 86 | Dark (4.76:1) |
| #9B683B | 155, 104, 59 | White (4.73:1) |
| #9B634B | 155, 99, 75 | White (4.91:1) |
| #995E33 | 153, 94, 51 | White (5.25:1) |
| #816031 | 129, 96, 49 | White (5.75:1) |
| #964F2C | 150, 79, 44 | White (6.08:1) |
| #86432D | 134, 67, 45 | White (7.36:1) |
| #764B32 | 118, 75, 50 | White (7.44:1) |
| #6F3F2A | 111, 63, 42 | White (8.68:1) |
Dark browns and chocolate
| Hex | RGB | Text on it |
|---|---|---|
| #72401D | 114, 64, 29 | White (8.51:1) |
| #5C3B23 | 92, 59, 35 | White (9.98:1) |
| #662D19 | 102, 45, 25 | White (10.75:1) |
| #4C3824 | 76, 56, 36 | White (11.06:1) |
| #4D2B19 | 77, 43, 25 | White (12.54:1) |
| #40251C | 64, 37, 28 | White (14.01:1) |
| #3B2111 | 59, 33, 17 | White (14.88:1) |
| #281D15 | 40, 29, 21 | White (16.45:1) |
Brown palettes
1. Chocolate and cream
| Role | Hex |
|---|---|
| Background | #FFF8E7 |
| Headings, buttons | #5C3B23 |
| Accent | #F4A460 (SandyBrown) |
Chocolate text on cream scores 9.42:1.
2. Warm café
| Role | Hex |
|---|---|
| Background | #F5EEE6 |
| Text | #4D2B19 |
| Links, buttons | #964F2C |
Text scores 10.90:1 and links 5.29:1 on the background.
3. Dark brown with sandy accent
| Role | Hex |
|---|---|
| Header background | #4D2B19 |
| Accent text, icons | #F4A460 |
| Body background | #FFFFFF |
SandyBrown on dark brown scores 6.16:1, readable for accent text in a header.
For multi-color earthy palettes that mix browns with greens and clay, see our earth tone guide.
Text on brown
- Light browns (tan, sand) need dark text.
- Medium browns around #9B683B sit near the 4.5:1 line with white; check each one.
- Dark browns carry white or cream text easily.
- CSS Chocolate (#D2691E) with white text scores only 3.63:1, so it suits large text only; CSS Brown (#A52A2A) with white scores 7.08:1.
Brown is a warm color; our warm vs cool guide explains how warm tones change a design’s mood.
Common mistakes with brown
- Using the CSS keyword brown for coffee or chocolate. It is reddish. Fix: use #5C3B23, #4D2B19 or SaddleBrown.
- Trusting CSS names. Chocolate is orange-brown, RosyBrown is pinkish. Fix: choose by hex code.
- White text on mid browns. Several sit just under or over 4.5:1. Fix: check each pair.
- Too many browns together. The design looks muddy. Fix: use one light, one medium and one dark brown, plus a neutral.
- Brown that looks gray on some screens. Low-saturation browns can lose warmth. Fix: pick a brown with a hue around 20°–30° and moderate saturation.
FAQ
What is the hex code for brown?
The CSS color brown is #A52A2A, which is rgb(165, 42, 42).
Why does CSS brown look red?
Its hue is 0° (red). The name comes from an older color list; most everyday browns have hues around 20°–35°.
What is the hex code for chocolate brown?
There is no official one; CSS Chocolate (#D2691E) is actually orange-brown. Deep browns such as #5C3B23 or #4D2B19 look like chocolate.
What is the hex code for light brown?
Try #C59C77 or #D5B290 from the light browns table.
What colors go with brown?
Cream, beige, white, sandy orange, sage green, teal and gold all pair well.
Choose your brown
Skip the reddish CSS keyword unless you want brick red, and choose a brown from the tables by its lightness and warmth. Keep text contrast in mind and record your hex code.