# Brown Color Code: #A52A2A Hex, RGB & Palettes

The CSS brown reference is #A52A2A, rgb(165, 42, 42), or hsl(0, 59.42%, 40.59%). Brand shades may differ. HEX and RGB encode the same sRGB reference; HSL is rounded to two decimals. These are screen values, not a CMYK print specification.

## Tints and shades

Illustrative mixes with white or black in encoded sRGB channels, not a perceptually uniform scale.

| Shade | HEX | RGB | HSL | Black text contrast | White text contrast |
| --- | --- | --- | --- | --- | --- |
| Tint 80% | #EDD4D4 | rgb(237, 212, 212) | hsl(0, 40.98%, 88.04%) | 14.97:1 | 1.40:1 |
| Tint 40% | #C97F7F | rgb(201, 127, 127) | hsl(0, 40.66%, 64.31%) | 6.83:1 | 3.08:1 |
| Reference | #A52A2A | rgb(165, 42, 42) | hsl(0, 59.42%, 40.59%) | 2.96:1 | 7.08:1 |
| Shade 25% | #7C2020 | rgb(124, 32, 32) | hsl(0, 58.97%, 30.59%) | 2.08:1 | 10.07:1 |
| Shade 50% | #531515 | rgb(83, 21, 21) | hsl(0, 59.62%, 20.39%) | 1.49:1 | 14.13:1 |

## Text contrast

AA ordinary text requires at least 4.5:1; large text requires at least 3:1. Large text is at least 18pt, or 14pt bold. Use unrounded ratios for decisions. Color pairs alone cannot certify accessibility; review criteria, states, context, and exceptions.

The CSS brown keyword is #A52A2A, not a generic earth-tone palette. Inspect the chosen shade beside red error tokens before assigning it a UI role.

## How to use brown in product design

Brown can support a warm brand accent or a category treatment alongside neutral surfaces. Its reddish CSS reference can compete with error styling, so document the difference clearly.

### A UI example to try

An inventory category can use a brown label next to a category name. Keep stock warnings tied to explicit status text and a separate semantic palette.

### Work through a real screen

Try brown as a text or accent role on a light warm surface, using a paragraph, label, and action together. Check whether the hierarchy remains clear beside black or dark-gray content. If brown is part of the brand, reserve stronger emphasis for the decisions users need to make.

### Compare nearby colors by purpose

Compare brown with navy or gray when choosing a dark supporting color. The choice can affect brand voice, but it does not establish trust or usability on its own. Review the interface with the intended audience and actual content.

1. Choose a foreground, surface, accent, or status role and name a semantic token after its purpose.
2. Test the actual pair, text size, interaction states, and themes.
3. Document the approved value and companion colors. Keep labels and non-color cues for states.

## CSS palette

Illustrative numeric tokens; connect tested pairs to semantic roles.

```css
:root {
  --brown-100: #EDD4D4;
  --brown-300: #C97F7F;
  --brown-500: #A52A2A;
  --brown-700: #7C2020;
  --brown-900: #531515;
}
```

## What is the HEX code for brown?

The CSS named color brown is #A52A2A. Use a documented brand token when you mean another shade.

## Is brown accessible?

A color alone cannot pass or fail accessibility. Evaluate the pair, content size, interaction state, and meaning in the complete interface.

## Related colors

- [beige color codes](https://designproject.io/resources/colors/beige/)

- [orange color codes](https://designproject.io/resources/colors/orange/)

- [red color codes](https://designproject.io/resources/colors/red/)

## Sources and next steps

By The Design Project. UI examples and generated scales are illustrative.

- [MDN CSS named colors](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/named-color)
- [W3C contrast guidance](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html)
- [UI color palette guide](https://designproject.io/resources/guides/create-ui-color-palette/)
- [Semantic color tokens](https://designproject.io/resources/guides/create-semantic-color-tokens/)
- [Color contrast checker](https://designproject.io/resources/guides/check-color-contrast/)
- [Design glossary](https://designproject.io/resources/glossary/)

Canonical: https://designproject.io/resources/colors/brown/

## Keep learning

- [How to create a UI color palette, step by step](https://designproject.io/resources/guides/create-ui-color-palette/)
- [Product design glossary: 44 terms explained](https://designproject.io/resources/glossary/)
- [How to create semantic color tokens for UI](https://designproject.io/resources/guides/create-semantic-color-tokens/)
