Brown Color Code (#a52a2a)

Brown is #a52a2a in hex and rgb(165, 42, 42) — a medium red. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Brown
#a52a2a
CSS namebrown
Hex#a52a2a
RGBrgb(165, 42, 42)
HSLhsl(0 59% 41%)
HWBhwb(0 16% 35%)
CMYK0%, 75%, 75%, 35%

Tints and shades

Color harmonies

About Brown

Brown (brown) is a medium, moderately saturated red with the hex code #a52a2a, or rgb(165, 42, 42). In HSL it sits at a hue of 0°, 59% saturation and 41% lightness. It is one of the 148 named colors every browser understands, so you can write color: brown; instead of the hex value.

Using Brown for text and backgrounds

PairingContrast ratioWCAG
Brown text on white7.08 : 1AAA
Brown text on black2.96 : 1fails

On a brown background, use white text (7.08 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: brown;               /* or #a52a2a */
  background-color: #a52a2a;
  border: 1px solid rgb(165 42 42 / 50%);
}

Similar named colors

Fire Brick (#b22222), Sienna (#a0522d), Saddle Brown (#8b4513), Crimson (#dc143c), Dark Red (#8b0000), Maroon (#800000).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for brown?
#a52a2a — that is rgb(165, 42, 42) and hsl(0, 59%, 41%). In CSS you can also just write brown.
Is brown text readable on white?
Its contrast ratio on white is 7.08 : 1, which passes WCAG AA for normal text.
What colors go well with brown?
Its complementary color is #2ba6a6; analogous colors #a62b69 and #a6692b sit next to it on the color wheel.