Brown color: hex #a52a2a, RGB and HSL
Brown is the CSS keyword brown, hex #a52a2a, rgb(165, 42, 42), hsl(0, 59%, 41%). It is a dark, vivid red in the browns family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.
- CSS name
- brown
- Hex
- #a52a2a
- RGB
- rgb(165, 42, 42)
- HSL
- hsl(0, 59%, 41%)
- On white
- 7.08:1 — passes AA for body text
- On black
- 2.96:1 — fails AA; use as a fill, not text
.example {
color: brown; /* keyword */
color: #a52a2a; /* hex */
color: rgb(165, 42, 42); /* rgb */
color: hsl(0, 59%, 41%); /* hsl */
}What colors go with brown
Each match keeps brown's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside brown as the primary; the harmony guides explain which rule suits which interface.
Complementary
The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.
Split-complementary
The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.
Triadic
Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.
Analogous
The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.
Tints and shades of brown
Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as brown — these are the hover, pressed, disabled and surface variants a single brand color needs.
Tints (lighter)
Shades (darker)
A UI color palette built from brown
The eight semantic roles an interface actually uses, derived from brown as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.
- primary
- #a52a2a
- secondary
- #2aa568
- accent
- #2a68a5
- background
- #fdfcfc
- surface
- #f7f3f3
- text
- #221111
- muted
- #8e5757
- border
- #ecdfdf
- primary
- #d04848
- secondary
- #48d08c
- accent
- #488cd0
- background
- #1a0e0e
- surface
- #281616
- text
- #f6f3f3
- muted
- #b69696
- border
- #492727
Using brown in an interface
Browns are muted oranges, and they behave like neutrals with warmth: the light ones make paper-like page backgrounds, the mid tones make borders and muted text, and the dark ones can carry body text. Brands that want to feel crafted or organic lean on this family. Whichever role brown takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.
- What is the hex code for Brown?
- Brown is #a52a2a. In CSS the keyword brown, the hex #a52a2a, rgb(165, 42, 42) and hsl(0, 59%, 41%) all paint the same color.
- What colors go with Brown?
- Its complement is #2aa5a5, the split-complementary pair is #2aa568 and #2a68a5, the triadic partners are #2aa52a and #2a2aa5, and the analogous neighbors are #a52a68 and #a5682a. In an interface, use Brown for most colored elements and one of these for a single accent, at roughly an 80/20 split.
- What is the opposite of Brown on the color wheel?
- The opposite (complementary) color is #2aa5a5, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
- Can I use Brown for text?
- Brown as text on white has a contrast ratio of 7.08:1, which passes WCAG AA for body text (4.5:1). On black it is 2.96:1, which fails for body text. It works as a text color on light surfaces.