tan — #D2B48C
#D2B48C
rgb(210, 180, 140) · hsl(34, 44%, 69%) · CSS keyword tan
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| tan on white | 1.97:1 | — | — |
| tan on black | 10.65:1 | AA | AA |
As a background, tan takes black text: 10.65:1 against 1.97:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: tan;
color: #d2b48c;
color: rgb(210 180 140);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to tan
- burlywood — #DEB887
- darkkhaki — #BDB76B
- silver — #C0C0C0
- darkgray — #A9A9A9
- sandybrown — #F4A460
- thistle — #D8BFD8
Frequently asked questions
What is the hex code for tan?
The hex code for tan is #D2B48C — RGB 210, 180, 140.
Can I use tan for text?
Not on a white background. tan reaches only 1.97:1, and WCAG AA asks for 4.5:1. It works as a background or a border, not as ink.
Should text on tan be black or white?
Black — 10.65:1 against 1.97:1 the other way.
Other named colours
- teal — #008080
- thistle — #D8BFD8
- tomato — #FF6347
- turquoise — #40E0D0
- violet — #EE82EE
- wheat — #F5DEB3
- white — #FFFFFF
- whitesmoke — #F5F5F5
- yellow — #FFFF00
- yellowgreen — #9ACD32
- aliceblue — #F0F8FF
- antiquewhite — #FAEBD7
#D2B48C in full — tints, shades and harmonies · All named colours · Colour reference