designwithfocus

Color codes & color models

Brown Color Code: HEX, RGB, Light Brown and Dark Brown

By Design With Focus Team 5 min read
A row of brown paint swatches from pale wheat to deep maroon

Short answer

The brown color code in CSS is #A52A2A, which is rgb(165, 42, 42). CSS Color Module Level 4, a Candidate Recommendation Draft dated 1 December 2026, lists that sRGB triple for the named color brown. There is no single official light brown or dark brown hex. Lighter and darker named colors in the same table are ordered below by computed HSL lightness. CMYK, HSL, and contrast on this page are computed from those sRGB values.

Last verified against the sources listed below.

Key takeaways

  • W3C named color brown is #A52A2A, rgb(165, 42, 42). The spec prints the hex in lowercase.
  • Computed HSL for brown is 0 degrees, 59% saturation, 41% lightness. Computed CMYK is 0, 75, 75, 35.
  • No spec name is defined as light brown or dark brown. Rank neighbors by computed lightness instead.
  • Maroon is the darkest in this set at 25% lightness. Bisque is the lightest at 88%.
  • Computed contrast of #A52A2A on white is 7.08:1. On black it is 2.96:1.
  • WCAG 2.2 asks for 4.5:1 on normal text at AA, 3:1 on large text, and 7:1 on normal text at AAA.

The brown color code in the CSS named colors is #a52a2a. CSS Color Module Level 4, a Candidate Recommendation Draft dated 1 December 2026, prints brown as that hex and as the sRGB channels 165, 42, and 42. MDN’s named-color table lists the same hex.

This page keeps those sRGB values as printed and computes HSL, a simple CMYK, and contrast from them. Light brown and dark brown are not names in the spec. The lighter and darker rows are other named colors, ordered by computed lightness.

What is the brown color code?

It is #A52A2A, or rgb(165, 42, 42). The spec writes the hex in lowercase. The digits are the same either way.

You can type the keyword brown in a stylesheet, or paste the hex, or write the rgb() function. MDN shows brown and #a52a2a together in the named-color table. The Brown Color Code tool copies that hex in the browser.

Computed from the sRGB value, HSL is 0 degrees, 59% saturation, and 41% lightness. Computed CMYK is 0% cyan, 75% magenta, 75% yellow, and 35% black. Those conversions are not printed in the spec.

Which named browns are in the spec?

Twelve names from the same table are below. HEX and RGB are the spec values. CMYK and HSL are computed from the sRGB value. Lightness is the last HSL number, and the rows run from darker to lighter.

Shade HEX RGB CMYK (computed) HSL (computed)
Maroon #800000 128, 0, 0 0, 100, 100, 50 0, 100%, 25%
Saddle brown #8B4513 139, 69, 19 0, 50, 86, 45 25, 76%, 31%
Sienna #A0522D 160, 82, 45 0, 49, 72, 37 19, 56%, 40%
Brown #A52A2A 165, 42, 42 0, 75, 75, 35 0, 59%, 41%
Chocolate #D2691E 210, 105, 30 0, 50, 86, 18 25, 75%, 47%
Peru #CD853F 205, 133, 63 0, 35, 69, 20 30, 59%, 53%
Rosy brown #BC8F8F 188, 143, 143 0, 24, 24, 26 0, 25%, 65%
Sandy brown #F4A460 244, 164, 96 0, 33, 61, 4 28, 87%, 67%
Tan #D2B48C 210, 180, 140 0, 14, 33, 18 34, 44%, 69%
Burlywood #DEB887 222, 184, 135 0, 17, 39, 13 34, 57%, 70%
Wheat #F5DEB3 245, 222, 179 0, 9, 27, 4 39, 77%, 83%
Bisque #FFE4C4 255, 228, 196 0, 11, 23, 0 33, 100%, 88%

Sienna sits just under brown, at 40% lightness against brown’s 41%. Chocolate, at 47%, is lighter than brown even though the name sounds dark. Rosy brown is a grayed rose at 65%, not a deep wood tone.

What counts as a light brown color code?

The lighter names, by computed lightness, are sandy brown, tan, burlywood, wheat, and bisque. None of them is an official “light brown” keyword.

Sandy brown is #F4A460, rgb(244, 164, 96), at 67% lightness. Tan is #D2B48C at 69%. Burlywood is #DEB887 at 70%.

Wheat and bisque climb to 83% and 88%, so they read as tints more than as a mid brown. Use them as panel fills. They are poor text colors on white, which the contrast section shows.

What counts as a dark brown color code?

The darker names are maroon, saddle brown, and sienna. Maroon is the darkest lightness in this set.

Maroon is #800000, rgb(128, 0, 0), at 25% lightness. It has no blue and no green in the spec triple, so the computed hue is 0, the same hue angle as brown, at a lower lightness. Saddle brown is #8B4513 at 31%, with a computed hue of 25 degrees, so it leans orange relative to brown. Sienna is #A0522D at 40%.

Mixing paints is a different question from these sRGB keywords. That mixing is covered in what colors make brown.

How does brown contrast on white and black?

Contrast here is computed with the WCAG 2.2 relative-luminance formula. For sRGB, luminance is 0.2126 R + 0.7152 G + 0.0722 B after each channel is linearized. The contrast ratio is (L1 + 0.05) / (L2 + 0.05) with the lighter luminance on top.

WCAG 2.2 asks normal text for at least 4.5:1 at level AA, large text for at least 3:1, and normal text for at least 7:1 at level AAA. Large text means at least 18 point, or 14 point bold. WebAIM quotes that same 4.5:1 minimum.

Color On white (computed) On black (computed)
Brown #A52A2A 7.08:1 2.96:1
Maroon #800000 10.95:1 1.92:1
Saddle brown #8B4513 7.10:1 2.96:1
Peru #CD853F 2.99:1 7.02:1
Sandy brown #F4A460 2.03:1 10.33:1
Bisque #FFE4C4 1.22:1 17.15:1

Brown on white clears the 7:1 AAA line for normal text. Brown on black stays under 3:1, so it does not clear the large-text minimum. Sandy brown, tan’s neighbors, and bisque need dark text. Black on bisque is 17.15:1.

How those red, green, and blue channels are defined is the subject of what RGB is. The hex on this page is only the named color brown, not a print standard and not a single light-brown code.

Frequently asked questions

What is the light brown color code?

There is no CSS keyword lightbrown. Among the named colors in this table, the higher computed lightness values are the lighter browns: sandy brown at 67%, tan at 69%, burlywood at 70%, wheat at 83%, and bisque at 88%. Bisque is #FFE4C4, rgb(255, 228, 196). Wheat is #F5DEB3, rgb(245, 222, 179). Those are separate spec colors, not aliases of brown. Pick the row whose lightness matches the fill you want.

What is the dark brown color code?

There is no CSS keyword darkbrown. Maroon is the darkest row here, at a computed lightness of 25%, with hex #800000 and rgb(128, 0, 0). Saddle brown is next at 31%, hex #8B4513. Sienna is 40%, just under brown's 41%, so it is only slightly darker than brown on the lightness axis. Use maroon or saddle brown when you want a clearly darker brown than #A52A2A.

Why do CMYK numbers differ from a press proof?

The CMYK column is a simple conversion from the sRGB triple, with black as one minus the strongest channel and the other inks filled from what remains. It is not an ICC press profile, and the CSS Color draft does not print these CMYK percentages for the named colors. A printer's profile can move the ink mix. Treat the table as a starting point you can hand to prepress, then proof on the actual stock.

Does brown text on white pass WCAG?

WebAIM's contrast article, quoting WCAG, says incidental text and logotypes have no contrast requirement. Incidental covers inactive controls, pure decoration, hidden text, and text that is part of a picture with other visual content. That exception is separate from the body text bars. Tan, #D2B48C, is not in the contrast table above. Computed from its sRGB value, tan on white is 1.97:1 and tan on black is 10.65:1, so it belongs with the light fills that need dark text.

Sources