Color codes

Brown hex code #A52A2A

#A52A2A is brown as CSS names it. It is a reddish brown, closer to brick than to coffee.

Brown #A52A2A CSS named color: brown

Brown color codes

HEX#A52A2A
RGBrgb(165, 42, 42)
HSLhsl(0, 59%, 41%)
CMYKcmyk(0%, 75%, 75%, 35%)
More formats and code
HSV / HSBhsv(0, 75%, 65%)
OKLCHoklch(0.481 0.16 25.6)
RGB numbers165, 42, 42
CSScolor: #a52a2a;
Tailwindbg-[#a52a2a]
SwiftUIColor(red: 0.647, green: 0.165, blue: 0.165)
AndroidColor.parseColor("#A52A2A")

CMYK here is a plain formula. Ask your print shop for the numbers their press uses.

Open in a tool: ConverterShade generatorContrast checkerColor wheelPalette generatorColor blindness simulator

Lighter and darker brown

Each step mixes in more white or black, in even steps for the eye. Tap a swatch to copy its code.

Lighter

Darker

Colors that go with brown

Complementary

Across the color wheel. Strong contrast, good for one button or one word.

Analogous

Its neighbors on the wheel. Calm, easy to use together.

Triadic

Three colors evenly spread. Lively, best with one in charge.

Pairs well in a brand

Brown and text

White text reads best on brown: 7.08:1. The same numbers hold for brown text on a white or a black page. Body text needs 4.5:1 for AA and 7:1 for AAA; large text needs 3:1.

TextContrastWCAG
AaWhite text on brown7.08:1AAA
AaBlack text on brown2.96:1Fails
Text in the sample post
How brown looks with color blindness

Other brown hex codes

If the CSS brown looks too red to you, you are not alone. The browns most people mean are darker and warmer: saddle brown #8B4513, sienna #A0522D, or a plain dark brown like #654321. For coffee shops, coffee #6F4E37 is a common pick. Chocolate #D2691E in CSS is lighter and more orange than real chocolate.

  • BrownCSS named color: brown. The code on this page#A52A2A
  • Dark brownCommon variant#654321
  • Saddle brownCSS named color: saddlebrown#8B4513
  • SiennaCSS named color: sienna#A0522D
  • CoffeeCommon variant#6F4E37
  • ChocolateCSS named color: chocolate#D2691E

Brown in a small business brand

Brown feels warm, earthy and handmade: cafés, bakeries, leather and woodwork, outdoor brands. Dark browns make a good text color instead of black, softer on a cream or beige ground. As a background, brown carries white text. Add one lighter accent, such as cream or sage, so a brown post does not feel heavy.

FAQ

What is the hex code for brown?

Brown is #A52A2A as the CSS named color brown. In RGB that is rgb(165, 42, 42), and in CMYK cmyk(0%, 75%, 75%, 35%).

What text color goes on brown?

White text, at a contrast of 7.08:1, which passes WCAG AAA. Black text reaches 2.96:1, too low for any text.

What is the hex code for dark brown?

There is no CSS name for dark brown. #654321 is a common pick, and saddle brown #8B4513 is the darkest brown CSS has by name.

Why does CSS brown look red?

CSS brown #A52A2A comes from an old list of color names and leans red. For a browner brown, use saddle brown #8B4513 or a code like #654321.

More color codes

All color codes

Keep your brand colors in one place

Add your brand colors once in Postfjord's design editor, under Settings, Brand, and every template can use them. Try it free.

Start free