Skip to content

Brown

Brown is a medium, rich color. Hex code #A52A2A.

Brown#A52A2A

Brown color codes

  • CSS namebrown
  • HEX#A52A2A
  • RGBrgb(165, 42, 42)
  • HSLhsl(0, 59%, 41%)
  • OKLCHoklch(48.1% 0.16 25.6)
HSB and CMYK values
  • HSB / HSVhsb(0, 75%, 65%)
  • CMYKC0 M75 Y75 K35

White text

7.08:1 · passes WCAG AAA

Black text

2.96:1 · fails WCAG

Shades of brown

A darker shade of brown is #6B090F (700), and a lighter one is #D0534D (400).

Colors that go with brown

Complementary

Analogous

Triadic

The complementary color of brown is #2AA5A5, close to light sea green.

Click a color to copy its hex code.

Colors similar to brown

Each compared with brown.

About this color

Brown in CSS and design

Brown is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same brown:

color: brown;
color: #A52A2A;
color: rgb(165, 42, 42);
color: hsl(0, 59%, 41%);

What to know about brown

CSS brown (#A52A2A) is a dark brick red rather than the brown most people picture: its hue is 0°, the same as red. For a brown with some orange in it, saddle brown (#8B4513), chocolate (#D2691E) and sienna (#A0522D) have hues of 19° to 25°. Firebrick (#B22222) is almost the same color as brown, only slightly lighter.

Frequently asked questions

What is the hex code for brown?

#A52A2A. In CSS you can also use the keyword brown, which works in every browser.

What is brown in RGB and HSL?

In RGB it is rgb(165, 42, 42) and in HSL hsl(0, 59%, 41%). In CMYK it is about C0 M75 Y75 K35, though printed colors vary with paper and ink.

Should I use black or white text on brown?

White text works better: it has a contrast ratio of 7.08:1 and passes WCAG AAA. Black text reaches 2.96:1.

What is the complementary color of brown?

#2AA5A5, close to light sea green. It sits opposite brown on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.

Which colors go with brown?

For strong contrast, pair it with its complementary color #2AA5A5. For a calmer look, combine it with its analogous neighbors #A52A68 and #A5682A. The palette generator builds more combinations.