Tan
Hex #D2B48C, rgb(210 180 140). A brown CSS named color.
Open in palette generatorTan color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Tan
Tan is a light moderately saturated brown with the hex code #D2B48C. In RGB it is made of 210 red, 180 green and 140 blue; in HSL its hue is 34°, with 44% saturation and 69% lightness. Its perceptual lightness (OKLCH L) is 78.6%.
It is a CSS named color, so you can write "tan" anywhere CSS accepts a color. Against white it has a contrast ratio of 1.97:1 and against black 10.65:1, so black text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Tan mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Tan 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Tan
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Triadic
Split complementary
Monochromatic
Contrast and readability
WCAG 2 contrast of Tan with white and black. The readable text color on Tan is black.
On white1.97:1
- AA fail
- AA Large fail
- AAA fail
- UI 3:1 fail
APCA Lc 38
On black10.65:1
- AA pass
- AA Large pass
- AAA pass
- UI 3:1 pass
APCA Lc -64
Test any pair in the contrast checker.
Color blindness preview
How Tan appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#C0B489
- Deuteranopia#C7BB8D
- Tritanopia#DEACA9
- Protanomaly#C5B58A
- Deuteranomaly#C9B98C
- Tritanomaly#D6B19A
- Achromatopsia#B9B9B9
Colors similar to Tan
The closest named colors by perceptual difference (OKLab).
Use Tan in CSS and Tailwind
.tan {
color: tan; /* #D2B48C */
background-color: rgb(210 180 140);
border-color: oklch(78.6% 0.064 74.6);
}/* Tailwind CSS v4: bg-tan-500, text-tan-700... */
@theme {
--color-tan-50: #FDF9F4;
--color-tan-100: #F4EADF;
--color-tan-200: #E6D5BF;
--color-tan-300: #D2B48C;
--color-tan-400: #BB8E4D;
--color-tan-500: #AA7620;
--color-tan-600: #946305;
--color-tan-700: #794F00;
--color-tan-800: #614005;
--color-tan-900: #4E3408;
--color-tan-950: #211300;
}
<!-- or the exact color, no config -->
<div class="bg-[#D2B48C] text-[#000000]">…</div>