Brown hex and RGB values
The CSS keyword brown gives you #A52A2A, or rgb(165, 42, 42).
CSS brown is a reddish brown that can give headings or navigation a warm tone. A coffee or wood palette may use a very different shade.
Compare black and white text
| Text / background | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| #000000 / #A52A2A | 2.96:1 | Fail | Fail | Fail | Fail |
| #FFFFFF / #A52A2A | 7.08:1 | Pass | Pass | Pass | Pass |
White text has the higher contrast on brown: 7.08:1. The table compares both options against all four text thresholds, using the unrounded values for pass or fail.
Try brown in a layout
The CSS sample below uses white text on #A52A2A. Preview a 16 px label and a 24 px heading to compare normal and large text. Swap the colors to try brown as the text color; the ratio stays the same.
.sample {
background: #A52A2A;
color: #FFFFFF;
}Copy the exact color
Use the converter to copy HEX, RGB or HSL. If you edit in HSL, the final value is rounded to eight-bit sRGB so the preview and exported color agree. For text over an image, gradient or translucent layer, check the finished design separately.