Brown
Brown is a medium, rich color. Hex code #A52A2A.
Brown color codes
- CSS name
brown - HEX
#A52A2A - RGB
rgb(165, 42, 42) - HSL
hsl(0, 59%, 41%) - OKLCH
oklch(48.1% 0.16 25.6)
HSB and CMYK values
- HSB / HSV
hsb(0, 75%, 65%) - CMYK
C0 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
- Firebrick#B22222
Slightly lighter
- Saddle brown#8B4513
More orange, more muted
- Sienna#A0522D
Slightly lighter, more orange, more muted
- Dark red#8B0000
Darker
- Maroon#800000
Darker
- Crimson#DC143C
Lighter, more pink, more vivid
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.