Free tool · Color palettes · Runs in your browser
Color palette for brown
Short answer
Brown is #A52A2A: the CSS color named brown, defined by the W3C, written rgb(165, 42, 42) or hsl(0, 59%, 41%). Its complement is #2AA5A5; analogous colors are #A52A68 and #A5682A; a triad adds #2AA52A and #2A2AA5.
#A52A2A · rgb(165, 42, 42) · hsl(0, 59%, 41%) · contrast 7.08:1 on white, 2.96:1 on black
Complementary
Analogous
Triadic
Split complementary
Tetradic (rectangle)
Square
Tints (toward white)
Shades (toward black)
CSS variables for the analogous palette
:root {
--color-1: #a52a68;
--color-2: #a52a2a;
--color-3: #a5682a;
}Nothing is uploaded. Click a color to copy its hex code.
Key takeaways
- Brown is #A52A2A, rgb(165, 42, 42), hsl(0, 59%, 41%), CIELAB 37.5, 49.7, 30.5.
- Contrast: 7.1:1 on white and 3.0:1 on black. White text on brown passes the WCAG AA minimum of 4.5:1.
- Its complement is #2AA5A5; the analogous colors are #A52A68 and #A5682A; the triad is #A52A2A, #2AA52A, #2A2AA5.
- 2 of the 9 tints and 9 of the 9 shades have at least 4.5:1 on a white background; the first shade that does is #952626.
- Photographs rich in brown gave #421A10, #5C2918, #5E382E, #40241E, #7B4836, #793D3F; the nearest of their colors to #A52A2A was 14.5 CIEDE2000 units away.
- For people with deuteranopia the closest pair in the triad is 16.9 apart, against 39.5 for typical vision.
Measured: a palette for brown, from photographs
On white it has a contrast ratio of 7.1:1 (passes the WCAG AA minimum of 4.5:1 for normal text) and on black 3.0:1. A palette extracted from three photographs rich in brown (47%, 15% and 8% of their pixels near the hue) came out as #421A10, #5C2918, #5E382E, #40241E, #7B4836, #793D3F.
We searched Wikimedia Commons for brown subjects and kept photographs under Creative Commons or public domain licenses. Of 12 candidates we kept the three with the largest share of pixels within 20 degrees of the hue of the color, with saturation of at least 25% and lightness between 12% and 50%. The tool's own palette code (k-means in CIELAB, no random numbers) found five colors in each photograph. The six colors in the table below come from only the pixels inside the color window, from the three photographs, so they are six shades and neighbors of brown rather than the whole picture.
| Color | Share | Nearest CSS name | Contrast on white | Contrast on black |
|---|---|---|---|---|
| #421A10 | 24.8% | near maroon | 15.14:1 | 1.39:1 |
| #5C2918 | 21.7% | near maroon | 11.76:1 | 1.79:1 |
| #5E382E | 19.2% | near maroon | 10.09:1 | 2.08:1 |
| #40241E | 18.5% | near maroon | 14.10:1 | 1.49:1 |
| #7B4836 | 11.1% | near saddlebrown | 7.44:1 | 2.82:1 |
| #793D3F | 4.7% | near brown | 8.23:1 | 2.55:1 |
Brown appears here as near maroon, near maroon, near maroon, near maroon, near saddlebrown, near brown. The photo palette is a starting point: colors from a photograph are rarely pure, and the table shows how each performs as text on white and black.
Measured: the photographs
| Photograph | Photographer, license | Pixels near the hue | Five colors |
|---|---|---|---|
| Autumn Leaves in January 2015 | KentuckyKevin, CC BY-SA 4.0 | 47% | #431E14 35%, #6B3D29 25%, #2D2221 16%, #826A62 12%, #E2DDDD 11% |
| Molly Brown House - fireplace | Bigmacthealmanac, CC BY-SA 4.0 | 15% | #3F3020 31%, #B5AE9B 25%, #6A6250 24%, #663D36 15%, #8F5E35 6% |
| Rembrandt van Rijn - A Polish nobleman | Rembrandt, Public domain | 8% | #15120E 37%, #34281F 35%, #5E4D3B 15%, #5F2F17 9%, #BD8243 4% |
The photographs are credited with their Wikimedia Commons license. The extracted lists are the exact tool output.
Colors that go with brown
| Harmony | Colors | Closest pair, typical vision | Protanopia | Deuteranopia | Tritanopia |
|---|---|---|---|---|---|
| Complementary | #A52A2A, #2AA5A5 | 58.5 | 38.7 | 36.7 | 65.9 |
| Analogous | #A52A68, #A52A2A, #A5682A | 19.3 | 16.6 | 10.4 | 6.8 |
| Triadic | #A52A2A, #2AA52A, #2A2AA5 | 39.5 | 33.7 | 16.9 | 34.0 |
| Split complementary | #A52A2A, #2AA568, #2A68A5 | 42.6 | 31.7 | 18.7 | 17.9 |
| Tetradic (rectangle) | #A52A2A, #A5A52A, #2AA5A5, #2A2AA5 | 34.5 | 32.2 | 25.0 | 32.4 |
| Square | #A52A2A, #68A52A, #2AA5A5, #682AA5 | 29.9 | 31.8 | 20.0 | 9.9 |
The complement, #2AA5A5, sits opposite #A52A2A on the color wheel (hue + 180 degrees); Wikipedia's color scheme article describes analogous schemes as neighbors on the wheel and a triadic scheme as colors 120 and 240 degrees apart. Under protanopia, deuteranopia and tritanopia the colors are simulated with the Machado model at full severity; a closest pair below about 10 is hard to tell apart.
Brown in numbers
| Notation | Value |
|---|---|
| Hex | #A52A2A |
| RGB | rgb(165, 42, 42) |
| HSL | hsl(0.0, 59.4%, 40.6%) |
| CMYK (simple conversion) | 0%, 75%, 75%, 35% |
| CIELAB (D65) | 37.5, 49.7, 30.5 |
| Nearest CSS color name | brown #A52A2A (exact) |
| Contrast on white | 7.08:1 |
| Contrast on black | 2.96:1 |
Tints, shades and accessible text
| Step | Tint (toward white) | Contrast on white | Shade (toward black) | Contrast on white |
|---|---|---|---|---|
| 10% | #AE3F3F | 5.86:1 | #952626 | 8.13:1 |
| 20% | #B75555 | 4.73:1 | #842222 | 9.40:1 |
| 30% | #C06A6A | 3.81:1 | #741D1D | 10.85:1 |
| 40% | #C97F7F | 3.08:1 | #631919 | 12.47:1 |
| 50% | #D29595 | 2.48:1 | #531515 | 14.13:1 |
| 60% | #DBAAAA | 2.03:1 | #421111 | 15.91:1 |
| 70% | #E4BFBF | 1.68:1 | #320D0D | 17.51:1 |
| 80% | #EDD4D4 | 1.40:1 | #210808 | 19.04:1 |
| 90% | #F6EAEA | 1.17:1 | #110404 | 20.14:1 |
2 tints and 9 shades reach 4.5:1 against white. The WCAG success criterion 1.4.3 asks for at least 4.5:1 for normal text and 3:1 for large text; criterion 1.4.6 asks for 7:1 for the enhanced level.
Use it in CSS
:root { --brown-1: #421a10; --brown-2: #5c2918; --brown-3: #5e382e; --brown-4: #40241e; --brown-5: #7b4836; --brown-6: #793d3f; }
The complement and analogous colors of #A52A2A: #2AA5A5, #A52A68, #A5682A.
Free tools:Color palette generatorPalette from an imageImage to textCompress an image
Check the contrast before you use it for text
- Brown #A52A2A on white: 7.08:1; on black: 2.96:1.
- The darkest shade in the table, #110404, reaches 20.14:1 on white.
- Large text (at least 18 point, or 14 point bold) needs 3:1; normal text needs 4.5:1; the enhanced level needs 7:1.
- Do not use color as the only way to tell things apart: about 1 in 12 men have a color vision deficiency.
How the numbers were made
The hex value of brown is the W3C CSS named color. Harmonies rotate the hue in HSL and keep saturation and lightness. Contrast follows the WCAG 2 definition with relative luminance. Color differences use CIEDE2000, which Wikipedia notes is designed so that a difference of 1.0 stands for a just noticeable difference. Color blindness is simulated with the matrices of Machado, Oliveira and Fernandes (2009) at severity 1.0. Palette extraction: pixels are grouped into 32 levels per channel and clustered with k-means in CIELAB; the same picture always gives the same palette. The accuracy test on pictures of known colors is on the palette generator page.
Questions people ask
What is the hex code for brown?
Brown is #A52A2A (the W3C CSS named color), rgb(165, 42, 42).
What color goes with brown?
The complement of #A52A2A is #2AA5A5. Analogous colors are #A52A68 and #A5682A; a triad is #A52A2A, #2AA52A, #2A2AA5.
Is #A52A2A accessible for text?
On white it has 7.08:1 and on black 2.96:1. The WCAG AA minimum for normal text is 4.5:1, so white text on #A52A2A passes.
Can people with color blindness tell the brown palette apart?
For the six colors of the photo palette, the closest pair is 5.1 apart for typical vision and 4.3 for deuteranopia (CIEDE2000; below about 10 is hard).
How was the palette made?
The tool found the dominant colors of the photographs with k-means clustering in CIELAB. It runs in your browser; you can do the same with your own picture on the palette from image page.
Can I use these colors commercially?
Colors themselves are not licensed. The photographs used to find them keep their Creative Commons licenses, shown in the table.
Can I get a palette from my own photo?
Yes. Use the palette from an image tool; nothing is uploaded.
How many colors should a palette have?
Many designs use five: one dominant, one or two supporting, one accent and a neutral. The tool lets you choose 3 to 10 when you extract from a picture.
What is the difference between tints and shades?
A tint mixes the color with white and a shade mixes it with black. The table shows nine of each in steps of 10%.
Related
Sources and how we checked
- W3C: CSS Color Module Level 4 (named colors) (read 2026-10-10)
- W3C: Understanding Success Criterion 1.4.3, Contrast (Minimum) (read 2026-10-10)
- W3C: Understanding Success Criterion 1.4.6, Contrast (Enhanced) (read 2026-10-10)
- Wikipedia: Color scheme (read 2026-10-10)
- Wikipedia: Color difference (CIEDE2000) (read 2026-10-10)
- Machado, Oliveira and Fernandes: A physiologically-based model for simulation of color vision deficiency (2009) (read 2026-10-10)
- Wikimedia Commons (the photographs, under the licenses shown) (read 2026-10-10)
Reviewed October 10, 2026. The palettes were found with the tool's own code from Creative Commons photographs; contrast, harmonies and color differences are computed. The files and results are in data/seo/hub/evidence/2026-10-10/palette.