You want a website that feels warm and trustworthy, but every brown you try either looks muddy or makes the text hard to read. The problem is rarely brown itself. It is usually the colors around it and the contrast between text and background.
Brown pairs best with cream, beige and light tan for backgrounds, olive green or deep blue as supporting colors, and a single bright accent such as gold or orange. To keep it readable, use dark brown for text on a light background, or a light neutral on a dark brown background. Check that the pair reaches at least a 4.5:1 contrast ratio for body text.
How a brown palette works on screen
A browser describes every color as a hex code: a # sign followed by six characters that give the red, green and blue amounts (the RGB values). Brown is a dark, muted orange, so its red channel is the highest and its blue channel the lowest. That is why browns feel earthy and why small changes in saturation move them from chocolate to muddy.
Designers also describe color in HSL: hue (the position on the color wheel), saturation (how vivid it is) and lightness (how light or dark). Browns sit at a hue of roughly 0 to 40 degrees. Keep lightness below about 50% for mid and dark browns, raise it for tan and camel, and lower saturation for taupe and grayish browns. In print, the same color is made with CMYK, the four inks cyan, magenta, yellow and black. You mostly need hex or HSL for a website.
To the question "what is the HTML code for brown?": the CSS keyword brown equals #A52A2A, a fairly red brown. The browns most people picture are deeper and warmer, such as Dark Brown #654321, Coffee #6F4E37 and Chocolate Brown #411900. Paler light browns include Tan #D2B48C, Camel #C19A6B and Latte #C5A582. Espresso #4E312D is among the darkest of the coffee browns. A capable development team builds this in rather than bolting it on.

Shades of brown and what they convey
Brown is the color of earth, wood, coffee and chocolate. It stands for stability, reliability, warmth and comfort, and it feels natural and down-to-earth. Muddy or overused brown can read as plain or old-fashioned.
- Light browns such as tan and camel feel soft and relaxed.
- Dark browns such as espresso feel rich and serious, and suit a premium tone.
- Reddish browns such as chestnut feel warm and earthy.
- Taupe is a grayish brown, a blend of brown and gray that is more neutral and calming.
- Umber and sienna are natural earth pigments, and their names are now used for deep, warm browns.
Color meaning also changes from culture to culture, so research your audience if you design for several regions.
How to make brown
Brown is a mixed color. With paint, mix two complementary colors (colors opposite each other on the wheel): orange and blue, red and green, or yellow and purple. Mixing the three primaries also works. More red or orange gives a warmer brown, more blue a darker, cooler one, and more yellow a golden brown. Add white for tan and camel, and a touch of black or blue for espresso. For a palette, this means you can create tints (brown plus white) and shades (brown plus black) of one base color to get a consistent family.

Which colors go with brown
Brown works as a neutral, so most palettes follow the same logic: one dark brown, one light neutral, one supporting hue and one accent. The colors below complement brown well.
- Cream, beige and light tan: the safest backgrounds. They give a soft, organic feel and strong contrast with dark brown text.
- Olive green and sage: natural and calm, suited to food, wellness and sustainable products.
- Deep blue or teal: blue is the complement of orange, and brown is a dark orange, so this is the classic high-contrast pairing and feels more modern than brown alone.
- Gold, orange or cinnamon: a warm accent for buttons and links that stays harmonious.
- Blush or soft pink: a gentler, more elegant pairing with a muted brown.
- Charcoal and gray: useful for a serious, premium tone when you want less warmth.
Avoid placing mid-tone browns next to mid-tone reds or oranges. The values are too close, so the page looks flat and the text loses definition. Very bright, cool colors such as cyan or magenta can also clash with the warmth of brown.
Keeping brown readable: WCAG contrast
The Web Content Accessibility Guidelines (WCAG) are the international standard for accessible web content. They measure legibility with a contrast ratio from 1:1 to 21:1. Level AA requires at least 4.5:1 for normal text and 3:1 for large text and interface components such as button borders. Level AAA asks for 7:1 for normal text. You can read the exact criteria in the official W3C documentation. Related reading: 7 Landmark Brown Color Palettes & Gradient Combinations.
Brown makes this easy at the dark end and hard in the middle. Dark browns on cream pass comfortably, while a mid brown like #A0522D on beige often falls short. Test every text and background pair with a contrast checker before you finalize the palette, including hover and disabled states.
A real example: UPS, brown as a corporate identity
UPS is the clearest large-scale example of brown used with discipline. Its brand pairs a very dark brown with a golden yellow, a combination that signals reliability and stability rather than rustic charm.
The values below are the ones commonly published for the UPS brand. Brand colors can change, so confirm them with your browser’s inspector on ups.com before reusing them. The contrast ratios are calculated from these hex codes using the WCAG formula and rounded. Related reading: 3000+ Shades of Brown Colors & Hex Codes.
| Swatch name | Hex code | Observed role | Contrast notes |
|---|---|---|---|
| Dark brown | #351C15 |
Brand color, headers, logo, dark sections | About 15.8:1 against white, passes AA and AAA |
| Golden yellow | #FFB500 |
Accent, highlights, calls to action | About 8.9:1 against the dark brown, but only about 1.8:1 against white, so it fails as text on white |
| White | #FFFFFF |
Page background, text on brown | Reference background for the dark brown |
What it solves
A very dark brown behaves almost like a black with warmth. It keeps maximum readability while feeling friendlier than pure black. The yellow then provides the visual energy that brown lacks.
What to reuse
- Use the dark brown for text and large blocks, and the gold only as a background or fill, never as small text on white.
- Put the gold behind dark brown text on buttons, since that pair reaches high contrast.
- Keep the palette to two colors plus white, which makes the whole site consistent across products and pages.

What other brown-led brands show
Many small brands use brown to express something specific. The patterns below are general approaches seen in this kind of business. No hex codes are given, so sample them yourself from the live pages.
- Coffee brands such as Alps Coffee: brown connects directly to the product, so it works as a background that makes photography of cups and beans feel warm. Reuse it by pairing a brown background with light cream text and one accent.
- Handcrafted ceramics such as Noni Ceramica: earthy tones echo clay and glazes. The lesson is to let the product photography supply the strong color and keep the interface neutral.
- Skin and beauty brands such as Black Girl Sunscreen: brown tones can represent a range of melanin-rich skin shades, which makes the palette meaningful rather than decorative. Reuse the idea by building a palette from real skin or product shades.
- Sustainable and eco-friendly brands such as Green Rebel: brown and green together suggest soil, plants and nutrition. A muted olive with a warm brown is the typical combination.
- Luxury and hospitality brands: brown evokes elegance, tradition and coziness, so a dark brown with generous light space suits watches, hotels and restaurants.
How to get exact hex codes from any live site
- Open the page in your browser and right-click an element, then choose Inspect.
- In the Styles panel, read the
colorandbackground-colorvalues. - Click the small swatch next to a value to see the hex code and the contrast ratio the browser calculates.
- Write down the date, because brands update their colors.
Building your own brown palette
Start from the role of each color rather than from the swatch. A workable website palette usually holds five slots.
- Background: a light neutral such as cream or light tan.
- Text: a dark brown, close to the UPS example in darkness.
- Primary brand color: a medium brown, used for headings, icons and large shapes.
- Supporting color: olive, blue or blush, used sparingly.
- Accent: gold, orange or cinnamon, reserved for buttons and links.
Define these as CSS custom properties (named values you write once and reuse) so the palette stays consistent across every page:
:root {
--bg: #F5EFE6;
--text: #2E1C14;
--brand: #7A4A2B;
--support: #6B7A4B;
--accent: #E0A100;
}
These values are a starting point, not a verified brand palette. Run each text and background pair through a contrast checker and adjust the lightness until it passes. Dark mode is a good test: invert the roles, with a deep brown background and cream text, and check the ratios again.
Dark brown, light brown and the best palettes for websites
The best color palette for a website is the one that serves your content. It must also pass contrast checks, and no fixed formula replaces that. Brown suits food, craft, wellness, hospitality and logistics because it reads as dependable and natural. For tech or fast-moving brands, use it as a secondary color next to a cooler hue.
Dark brown works for text, footers and premium sections. Large dark areas can feel heavy on mobile, so balance them with generous light space. Light brown, such as tan or taupe, is better as a background or a divider than as text, because its contrast with white is low.
Recap
A good brown website palette comes down to three decisions: a dark brown dark enough for text, a light neutral background, and one accent used with restraint.
UPS shows how far two colors can go when contrast is respected. The other brands show that brown carries meaning when it matches the product. Pick your hex codes, test every pair against WCAG, and keep the palette in CSS variables so it stays consistent. If you are preparing a new site design, start by sampling and testing your colors before you build anything else.