#D2B48C — Tan

Tan is the CSS named color #D2B48C — rgb(210, 180, 140), hsl(34, 44%, 69%). Its relative luminance is 0.482, giving 1.97:1 against white and 10.65:1 against black, so it works as a text color on black.

Tan in every notation

HEX#D2B48C
RGBrgb(210, 180, 140)
HSLhsl(34, 44%, 69%)
Relative luminance0.4824
Contrast on white1.97:1 AA fail
Contrast on black10.65:1 AA pass

Tints and shades of tan

#F8F4EE
#EFE5D7
#E4D2BA
#DAC2A1
#D2B48C
#B39977
#8F7A5F
#695A46
#433A2D

Built by mixing tan toward white (four steps) and toward black (four steps) while keeping the hue. Use the shades generator for a different step count or to add harmony sets.

Similar CSS colors

Closest by CIELAB distance (ΔE76). For perceptual matching in a design system, compare in OKLab before locking a token.

Frequently asked questions

What is the hex code for tan?

tan is #D2B48C, which is rgb(210, 180, 140) and hsl(34, 44%, 69%). It is one of the 148 CSS named colors defined by the CSS Color Module Level 4.

Is tan light or dark?

Tan has a relative luminance of 0.482 on a 0–1 scale, so it is a dark color. Against white it scores 1.97:1; against black, 10.65:1.

Can I use tan for text?

tan reaches 10.65:1 against black, which clears WCAG 2.2 AA for normal text (4.5:1) at any size.