Tan Color Code: Hex #D2B48C
The hex code for Tan is #D2B48C (the CSS keyword tan). Tan RGB code: rgb(210, 180, 140). The xkcd color survey gives #D1B26F instead, which looks slightly different; both codes are below with their source.
#D2B48CTop: the code browsers use#D1B26FBelow: compare edge to edgeTan color codes: each Tan hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look slightly different
- Family
- brown
- Contrast
- 1.97:1 with white, 10.65:1 with black
- CSS keyword
- tan
- Character
- light, muted
- Readable text on it
- black (AA)
The name comes from tannum, oak bark used to tan leather, and is recorded as a color name in English from 1590.
A light, muted golden orange with a warm cast. In code, tan gives exactly this web value. If you mean the color as people usually picture the name, the survey value #D1B26F is closer: it is about as light and more vivid.
Black text reads best on it; white text does not pass WCAG AA. Next to Burlywood, its closest named neighbour, it looks about as light, more muted and cooler; beside Taupe it looks lighter, more vivid and warmer.
Colors that go with Tan
Complementary: the opposite of Tan
#D2B48CBlack text 10.65:1#9EBCE2Black text 10.75:1#E6D5BFBlack text 14.63:1#60738CWhite text 4.85:1
Analogous
#DDAD98Black text 10.51:1#D2B48CBlack text 10.65:1#BFBC8DBlack text 10.79:1#EDE1D1Black text 16.29:1
Triadic
#D2B48CBlack text 10.65:1#88C7C6Black text 11.03:1#C9AED6Black text 10.51:1#F4ECE2Black text 17.94:1
Monochrome
#393023White text 12.95:1#816E55White text 4.89:1#D2B48CBlack text 10.65:1#E0CAAEBlack text 13.23:1#EDE1D1Black text 16.29:1
With neutrals
#D2B48CBlack text 10.65:1#F4ECE2Black text 17.94:1#1A140DWhite text 18.26:1#988F84Black text 6.60:1
Preview
Heading on Tan
Body text on this color, 10.65:1.
ButtonHeading in Tan
Text in this color on white, 1.97:1.
ButtonTints and shades
#F4ECE2#EDE1D1#E6D5BF#E0CAAE#D9BF9D#D2B48C#A99070#816E55#5C4E3B#393023#1A140D
WhiteTanBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “Shades of brown” (checked 2 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: