Brown Color
HEX #A52A2A · rgb(165, 42, 42) · hsl(0, 59%, 41%)
Brown color codes
Brown is one of the named colors every browser understands. In CSS you can write it as brown or #A52A2A.
| Format | Value | |
|---|---|---|
| HEX | #A52A2A | |
| RGB | rgb(165, 42, 42) | |
| HSL | hsl(0, 59%, 41%) | |
| CMYK | 0%, 75%, 75%, 35% | |
| CSS name | brown |
.example {
color: brown;
background-color: #A52A2A;
border-color: rgb(165, 42, 42);
}
Colors that go with brown
These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.
Tints and shades of brown
Tints mix the color with white; shades mix it with black.
Brown
Contrast and readability
2.96:1
fails
7.08:1
passes AA and AAA
Use white text on brown. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.
Frequently asked questions
What is the hex code for brown?
The hex code for brown is #A52A2A.
What is the RGB value of brown?
Brown is rgb(165, 42, 42): 165 red, 42 green and 42 blue on a 0 to 255 scale.
What color goes with brown?
Its complementary color is #2AA5A5, which is closest to the named color light sea green. Analogous and triadic matches are listed on this page.
Should text on brown be black or white?
Use white text. The contrast ratio is 2.96:1 with black and 7.08:1 with white. WCAG AA asks for at least 4.5:1 for normal text.
Similar named colors
Pick any other color with the color picker, or browse all named colors.