About tan
A light brown named after the tanning of leather. This is the CSS tan. Its hex code is #D2B48C, which is rgb(210, 180, 140): 210 red, 180 green and 140 blue on a scale of 0 to 255.
Tan is a warm color.
Tan tints and shades
Lighter tints (mixed with white) and darker shades (mixed with black) of tan. Click any of them to copy its hex code.
Colors that go with tan
Complementary
The opposite color on the color wheel, for strong contrast.
Analogous
Neighbors on the color wheel, for a calm, matching look.
Triadic
Three colors evenly spaced around the wheel, for a balanced, lively palette.
Split complementary
The two colors either side of the complement: contrast without clashing.
Text on tan
White text
Black text
For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). Black text is the better choice on tan. Test other combinations with the contrast checker.
Using tan in CSS
.element {
color: #D2B48C;
background-color: rgb(210 180 140);
border-color: hsl(34 44% 69%);
}
Frequently asked questions
What is the hex code for tan?
Tan is #D2B48C. In RGB it's rgb(210, 180, 140), and in HSL it's hsl(34, 44%, 69%).
What colors go with tan?
Its complementary color is #8CAAD2, which gives strong contrast. For a softer look, use analogous colors #D2918C and #CDD28C. Tan also pairs well with charcoal or black.
Is tan warm or cool?
Tan is a warm color.
Should I use white or black text on tan?
Use black text. Its contrast ratio on tan is 10.64:1, versus 1.97:1 for white.
Similar colors
- Khaki#C3B091rgb(195, 176, 145)
- Champagne#F7E7CErgb(247, 231, 206)
- Terracotta#E2725Brgb(226, 114, 91)
- Peach#FFE5B4rgb(255, 229, 180)
- Beige#F5F5DCrgb(245, 245, 220)
- Orange#FFA500rgb(255, 165, 0)
See all popular colors · All HTML color names · Open tan in the color picker