Color Converter Convert colors between HEX, RGB and HSL — free, instant, private.

Tan Color Code (#D2B48C)

Tan is an official CSS named color: #D2B48C — rgb(210, 180, 140) — hsl(34, 44%, 69%).

HEX#d2b48c
RGBrgb(210, 180, 140)
HSLhsl(34, 44%, 69%)
Complementary#8dabd3 (hue + 180°)
CSS nametan (official keyword)
color: tan; background-color: #d2b48c; border-color: hsl(34, 44%, 69%);



The color tan in CSS

Tan is one of the 148 named colors defined by the CSS Color Module — write the keyword tan anywhere a color value is accepted (color, background-color, border-color, gradients) and every browser renders exactly #D2B48C (rgb(210, 180, 140)).

Shades and tints of tan

Same hue and saturation, stepped through lightness — click any swatch for its own page:

Popular color codes

Convert any color with the HEX, RGB and HSL converter.

Common input mistakes (and fixes)

Why an HSL round trip can shift by one

This tool rounds HSL values to whole numbers, so converting away and back can drift slightly. Example: #f97316 becomes hsl(25, 95%, 53%), and converting that back gives rgb(249, 116, 21) — one step off on two channels. That is rounding, not a bug: whole-number HSL offers roughly 3.7 million combinations, while RGB has 16,777,216, so some colors simply have no exact HSL match. Treat the 6-digit HEX as the exact value and HSL as a close, editable approximation.

Frequently asked questions

What color is tan?

Tan is an official CSS named color with the hex code #D2B48C — rgb(210, 180, 140) in RGB and hsl(34, 44%, 69%) in HSL. Its complementary color (hue + 180°) is #8dabd3.

How do I use the tan color in CSS?

Write color: tan; for text or background-color: tan; for surfaces — the keyword works in every browser, no quotes needed. Equivalent notations: #D2B48C, rgb(210, 180, 140) and hsl(34, 44%, 69%).

Is tan the same as #D2B48C?

Yes — the CSS keyword tan is defined as exactly #D2B48C (rgb(210, 180, 140)), so the keyword and the hex code always render the identical color.