On this page
The palette maker above turns this brown into monochrome, analogous, complementary, triadic and split palettes with copyable HEX, RGB and HSL codes. Below you will find the full set of values, the history of the name, accessibility numbers and palettes ready to use.
Brown hex, RGB, HSL and CMYK values
A hex code is three pairs of base-16 digits: red, green, blue. In , A5 is 165 for red, and 2A is 42 for both green and blue. Because green and blue are equal, the hue sits at exactly 0 degrees, the red end of the wheel. That is why this brown looks like a dark, slightly dusty red rather than a woody orange-brown.
| Format | Value |
|---|---|
| HEX | |
| RGB | 165, 42, 42 |
| HSL | hsl(0, 59%, 41%) |
| HSV | 0°, 75%, 65% |
| CMYK | 0, 75, 75, 35 |
| Nearest web-safe |
The CMYK values, used in printers, are C:0 M:75 Y:75 K:35. Treat those as a starting point only. A real press converts through an ICC profile, so the printed result depends on the paper and the ink set.
Brown #A52A2A or #964B00: which one do you need?
Search for “brown hex code” and most pages will give you . That color is the one normally and traditionally regarded as brown, a medium dark orange. Its values are RGB 150, 75, 0 and hsl(30, 100%, 29%). The CSS keyword, by contrast, is , noticeably redder.
Typing brown in CSS gives (hue 0°). The traditional brown sits at hue 30°, so it looks toasted and orange next to it.

The two are not interchangeable in a design. Put them side by side and the difference is obvious within a second. A quick rule of thumb:
- Use when you want a brick, cherry-wood or red-brown tone, or when you simply type the keyword brown.
- Use for leather, toasted wood, caramel and classic “earth” illustrations.
- Use a darker value such as or when you need brown for text or dark backgrounds.
Where the CSS name brown comes from
The name is older than the web. CSS inherited its named colors from the X11 window system, whose rgb.txt file mapped human-readable names to RGB values. CSS Color Level 3 became a W3C Recommendation in 2011 with 147 named-color keywords. Brown is one of them, listed as in the specification.
Which hex code does the CSS keyword brown produce?
The CSS and SVG keyword brown is defined as #A52A2A (165, 42, 42), a red-brown.
There is also a long-standing reason it leans red. The historical and traditional name for this color is red-brown. You will also see it listed under alias names such as auburn. The web color simply kept the older sense of the word, even though most people now picture something more orange.
One caution from the spec world: the color names more or less describe their colors, but they are essentially artificial. If a brand needs exact consistency, write the hex code and never the keyword.
How brown #A52A2A compares with similar colors
Next to firebrick (), brown is darker and less saturated, so firebrick reads as a true red while brown reads as earthy. Maroon () is the next step down: deeper, wine-like and a little more formal. Dark red () is purer still, with no softness at all.
Moving toward orange changes the personality. Sienna () and saddle brown () keep a similar lightness but pull the hue to about 19 and 25 degrees, which feels like clay and polished wood. Chocolate () is lighter and much more orange. In the other direction, rosy brown () is a pale, dusty pink-beige, and its lighter tints drift toward a salmon tone like Light Red.
A useful test is to place the colors on a mid-gray background. holds its identity there, while sienna starts to look like terracotta and rosy brown almost disappears.
Brown in CSS: copy-ready snippets
You can write the same color five ways, and all of them render identically:
color: brown;
color: #A52A2A;
color: rgb(165 42 42);
color: hsl(0 59% 41%);
color: #A52A2A80; /* 50% opacity */
For a real project, store it once as a custom property and derive the rest. HSL makes tints and shades easy because you only change the lightness:
:root {
--brown: #A52A2A;
--brown-dark: hsl(0 59% 30%);
--brown-tint: hsl(0 59% 80%);
}
.button { background: var(--brown); color: #fff; }
.button:hover { background: var(--brown-dark); }
The last two digits in an eight-digit hex are alpha. 80 in hex is 128 out of 255, which is roughly half opacity. For gradients, brown fades well into warm neighbors, and the orange to red gradient page shows how that kind of warm blend is built.
Is brown #A52A2A accessible? Contrast ratios
I computed the relative luminance of as roughly 0.098. From that, white text on brown has a contrast ratio of about 7.08:1. Black text on brown reaches only about 2.97:1. WCAG asks for 4.5:1 for normal text and 3:1 for large text and interface components, so white passes comfortably and black fails for body copy.
Which text color is readable on a #A52A2A background?
White reaches about 7.08:1 on this brown, while black only manages about 2.97:1.
The other direction works too. Brown text on a cream background such as comes to about 5.8:1, which is fine for paragraphs. Brown on a dark background is the trap: on near-black it is weak, so keep it for fills and accents there, not for words.

On one client’s donation page, the button label was a pale tan on a red-brown fill. It looked elegant in the mockup and was hard to read on a phone in sunlight. Switching the label to white fixed it in one line of CSS. Also avoid using brown against green to mean “wrong” and “right”. Red-brown and green can look alike to people with common color-vision deficiencies, so add an icon or text label.
Color harmonies built from brown
Because sits at hue 0, its harmonies are easy to predict. The complement is teal (), which is the freshest partner. Analogous neighbors are (an amber-brown) and (a berry tone). A triad adds green and blue , while a split-complementary scheme uses and .
Pure triads at these saturations can feel loud, so keep brown as the anchor and use the others in small doses. For a calmer pairing, desaturate the partner: a dusty denim like Muted Blue sits beautifully with brick brown and feels natural in apparel and cafe branding. Warm autumn combinations also work, as in the green and orange palettes, where brown plays the earthy bridge between the two.
Try this: Open the palette maker above and choose the complementary scheme. Use teal on only about 10% of a mock layout (a link, an icon, one badge) and keep brown for the main action. Notice how little accent you need.
Brown palettes you can copy and use today
These four palettes are built from and neighbors you can verify in the table above. Each covers a different mood, from strictly monochrome to a lively complementary scheme. Copy the hex codes straight from the swatches.
Monochrome steps for buttons, hover states and charts in one hue.
A complementary scheme for editorial sites, menus and calm product pages.
Analogous earth tones for packaging, seasonal posters and warm interiors.
Roastery and bakery branding with a soft sage accent for balance.
The cream in the middle of several palettes () matters more than it looks. It keeps brown from feeling heavy, and if you want a brighter variation, a pastel like Pale Yellow gives a sunnier background with the same warmth.
Using brown in branding, interiors, fashion and print
Web and UI
Brown works as a primary action color on light backgrounds, a quiet alternative to a standard red. It signals warmth without the urgency of pure red, so it suits e-commerce, food and craft sites. Keep hover states a lightness step darker, and keep disabled states to a tint.
Branding, packaging and interiors
Brown reads as craft, coffee, leather, wood and reliability. Next to a festive red like Christmas Red, it looks calmer and more natural, which is why it pairs well with kraft paper and cream packaging. In interiors, a brick-like brown works for accent walls, leather chairs and tiles, ideally balanced with lighter wood and plenty of off-white.
Fashion, print and art
In clothing, red-browns suit autumn knitwear, boots and bags, and they sit well beside warm hair shades like Honey Blonde. In print, I once approved a packaging proof on coated stock where this brown looked rich and wine-like, then saw the same file on uncoated stock go flat and brick-dull. Always proof on the real paper. In painting, red-browns are usually built from earth pigments rather than one tube, which gives more life than a flat swatch.
How to mix brown and build its shades
On screen, brown is simply red with the lights turned down and a little green added. In pigment or print, you mix red, black and yellow in CMYK, or red and green in RGB. If you want to shift a brown, add a touch of yellow to warm it or a touch of its complement to mute it.
To build a ladder of shades from , keep the hue at 0 and 59% saturation and change only the lightness:
- 20% lightness gives , a deep espresso red.
- 30% gives , good for hover states and headings.
- 41% is the original .
- 60% gives , a warm coral for highlights.
- 80% gives , a soft blush for backgrounds.
That ladder is also the first palette above. Swap in a hue of 20 to 30 degrees at the same lightness values if you want it to feel like wood instead of brick.
Colors close to brown
Brown Color: questions people ask
What is the hexadecimal code for brown?
In CSS and HTML the keyword brown is #A52A2A, which is RGB 165, 42, 42. Many color guides instead call #964B00 (RGB 150, 75, 0) the traditional brown, so check which one a project expects.
What is the RGB value of brown #A52A2A?
It is rgb(165, 42, 42): red at 165, green at 42 and blue at 42. In HSL it is hsl(0, 59%, 41%), and in CMYK roughly 0, 75, 75, 35.
Is CSS brown the same as the brown most people picture?
Not quite. CSS brown is a medium-dark red-brown, while the brown most people picture is more orange, like #964B00 or saddle brown #8B4513.
Does white text work on brown #A52A2A?
Yes. White on #A52A2A has a contrast ratio of about 7.08:1, which passes WCAG AA for normal text and just clears the AAA threshold of 7:1.
What colors go well with brown #A52A2A?
Cream (#F5E6D3), teal (#2AA5A5), sage green, tan and muted blue all pair well. Cream keeps it warm and classic, while teal gives a fresh, high-contrast accent.
Keep exploring
- Light Green Color: Hex Code, RGB and Palettes
- Lavender Color: Hex Code, RGB and Palettes
- Mint Green Color: Hex Code, RGB and Palettes
- Cream Color: Hex Code, RGB and Palettes
- Azure Blue Color: Hex Code, RGB and Palettes
- Dark Grey Color: Hex Code, RGB and Palettes
- Pink and Purple Color Combination: Palettes and Hex Codes
- Skin Tone Hex Codes: Realistic Skin Color Palettes