Tan Hex Code #D2B48C
Tan is a light, moderate brown with the hex code #D2B48C. In RGB it is 210, 180, 140, and in HSL it is 34°, 44%, 69%. It is one of the 148 named colors in CSS, so you can write “tan” instead of the hex code.
- HEX
- #D2B48C
- RGB
- rgb(210, 180, 140)
- HSL
- hsl(34, 44%, 69%)
- HSV
- hsv(34°, 33%, 82%)
- CMYK
- cmyk(0%, 14%, 33%, 18%)
- CSS name
- tan
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Tan
On a white background Tan has a contrast ratio of 1.97:1 (Fail), and on black 10.65:1 (AAA). Black text is the better choice on top of it.
It sits on the warm side of the color wheel, a range that tends to feel energetic and appears to advance toward the viewer.
Brown is earthy and warm. It suits natural, rustic and food-related designs, and works as a softer, more grounded alternative to black.
Shades and tints of Tan
Tints mix Tan with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Color harmonies for Tan
These schemes are calculated from Tan on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.
On the artist’s RYB wheel, the complement of Tan is #8C95D2, close to the named color Cornflower Blue.
Tan contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Tan scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 1.97:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
| Black (#000000) | 10.65:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
Tan and color blindness
These are approximate previews of how Tan can look with the main types of color vision deficiency.
Tan shifts slightly.
Tan shifts slightly.
Tan changes noticeably.
Tan changes noticeably.
Gradients with Tan
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Tan to a lighter tint
background: linear-gradient(135deg, #d2b48c 0%, #ede1d1 100%); Tan to its analogous neighbour
background: linear-gradient(135deg, #d2b48c 0%, #cdd28c 100%); Tan to its complement
background: linear-gradient(135deg, #d2b48c 0%, #8caad2 100%); Colors similar to Tan
How each close match differs from Tan.
Use Tan in code
.element {
color: #d2b48c;
background-color: #d2b48c;
border-color: tan; /* tan is a valid CSS color name */
} :root {
--color-tan: #d2b48c;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#d2b48c] text-[#d2b48c] border-[#d2b48c]"></div>
/* Tailwind v4 theme color */
@theme {
--color-tan: #d2b48c;
} Tan questions
What is the hex code for Tan?
The hex code for Tan is #D2B48C. In RGB that is rgb(210, 180, 140), and in HSL it is hsl(34, 44%, 69%).
What is the complementary color of Tan?
On the RGB (screen) color wheel, the complement of Tan is #8CAAD2, which is close to Light Steel Blue. On the artist’s RYB wheel it is #8C95D2, close to Cornflower Blue.
Should I use white or black text on Tan?
Black text. It has a contrast ratio of 10.65:1 against Tan, which is WCAG AAA. The other option scores 1.97:1.
Is Tan accessible as a text color on white?
No. Tan on white scores 1.97:1, which is below the WCAG minimum of 3:1 even for large text.
What are darker and lighter shades of Tan?
Mixing Tan with black gives #A89070, #7E6C54, #544838, #2A241C (20% to 80% black). Mixing it with white gives #DBC3A3, #E4D2BA, #EDE1D1, #F6F0E8 (20% to 80% white).