Tan
Tan is a light, soft color from the orange family. Hex code #D2B48C.
Tan color codes
- CSS name
tan - HEX
#D2B48C - RGB
rgb(210, 180, 140) - HSL
hsl(34, 44%, 69%) - OKLCH
oklch(78.6% 0.064 74.6)
HSB and CMYK values
- HSB / HSV
hsb(34, 33%, 82%) - CMYK
C0 M14 Y33 K18
White text
1.97:1 · fails WCAG
Black text
10.64:1 · passes WCAG AAA
Shades of tan
A darker shade of tan is #997C56 (400), and a lighter one is #FEEFDC (50).
Colors that go with tan
Complementary
Analogous
Triadic
The complementary color of tan is #8CAAD2.
Click a color to copy its hex code.
Colors similar to tan
- Burlywood#DEB887
Slightly lighter
- Dark khaki#BDB76B
Slightly darker, more yellow, more vivid
- Sandy brown#F4A460
More vivid
- Dark salmon#E9967A
Slightly darker, more red, more vivid
- Light salmon#FFA07A
More red, more vivid
- Dark sea green#8FBC8F
Slightly darker, more green
Each compared with tan.
About this color
Tan in CSS and design
Tan is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same tan:
color: tan;
color: #D2B48C;
color: rgb(210, 180, 140);
color: hsl(34, 44%, 69%);What to know about tan
Tan is a word from leather tanning: Merriam-Webster traces the noun to French tan, tanbark, and defines the color as a light yellowish brown, a good match for CSS tan (#D2B48C). It is darker and browner than beige (#F5F5DC) and wheat (#F5DEB3). Burlywood (#DEB887) is almost the same, slightly lighter.
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) and in HSL hsl(34, 44%, 69%). In CMYK it is about C0 M14 Y33 K18, though printed colors vary with paper and ink.
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.
What is the complementary color of tan?
#8CAAD2. It sits opposite tan on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with tan?
For strong contrast, pair it with its complementary color #8CAAD2. For a calmer look, combine it with its analogous neighbors #D2918C and #CDD28C. The palette generator builds more combinations.