CSS named color

Tan #D2B48C

tan rgb(210, 180, 140)

Tan is a light orange with the hex code #D2B48C, which converts to rgb(210, 180, 140). Open #D2B48C in the converter to tweak it.

Tan color values

HEX#D2B48C
HEX (shorthand)—
RGBrgb(210, 180, 140)
RGBArgba(210, 180, 140, 1)
8-digit HEX#D2B48CFF
HSLhsl(34, 44%, 69%)
HSV / HSB34°, 33%, 82%
CMYK0%, 14%, 33%, 18%
RGB 0–10.824, 0.706, 0.549
Decimal13808780
CSS keywordtan

How #D2B48C converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: D2 → 210, B4 → 180, 8C → 140. That gives rgb(210, 180, 140). The step-by-step guide explains the math.

Shades of Tan

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of Tan

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of Tan on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

Complementary

Analogous

Split-complementary

Triadic

Tetradic (square)

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White Tan 1.97:1Fail
Black Tan 10.64:1AAA

Use black text on a tan background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use Tan in CSS

.element {
  color: tan;                         /* keyword */
  background-color: #D2B48C;            /* hex */
  border-color: rgb(210 180 140 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #D2B48C80 is Tan at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for Tan?

The CSS named color tan is #D2B48C in hexadecimal. In CSS you can write color: tan; or color: #D2B48C; — both produce the same pixel.

What is Tan in RGB?

Tan is rgb(210, 180, 140): red 210, green 180, blue 140 on the 0–255 scale. As normalized 0–1 floats that is (0.824, 0.706, 0.549).

Is white or black text more readable on Tan?

Black text is more readable. White on #D2B48C has a contrast ratio of 1.97:1 (Fail), black on #D2B48C has 10.64:1 (AAA). WCAG AA needs 4.5:1 for normal text.

Copied!