Skip to content

Tan

Tan is a light, soft color from the orange family. Hex code #D2B48C.

Tan#D2B48C

Color codes

  • CSS nametan
  • HEX#D2B48C
  • RGBrgb(210 180 140)
  • HSLhsl(34 44% 69%)
  • HSB / HSVhsb(34, 33%, 82%)
  • OKLCHoklch(78.6% 0.064 74.6)
  • CMYKcmyk(0%, 14%, 33%, 18%)

White text

1.97:1 · fails WCAG

Black text

10.64:1 · passes WCAG AAA

Shades

50#FEEFDC
100#EECFA6
200#D1B38B
300#B49770
400#997C56
500#7E633D
600#644A24
700#4B320A
800#301D01

Complementary

#D2B48C
#9EBCE2

Analogous

#D2B48C
#DDAD98
#BFBC8D

Triadic

#D2B48C
#88C7C6
#C9AED6

About this color

Tan in CSS and design

Tan is a light, soft color from the orange family. Tan is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

color: tan;
color: #D2B48C;
color: rgb(210 180 140);
color: hsl(34 44% 69%);

For text on tan, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for tan?

#D2B48C. In CSS you can also use the keyword tan, which works in every browser.

What is tan in RGB and HSL?

In RGB it is rgb(210 180 140), in HSL hsl(34 44% 69%). For print, cmyk(0%, 14%, 33%, 18%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

Should I use black or white text on tan?

Black text works better: it has a contrast ratio of 10.64:1 and passes WCAG AAA. White text reaches 1.97:1.

Which colors go with tan?

Its complementary color is #9EBCE2, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #DDAD98 and #BFBC8D. The palette generator builds more combinations.