CSS named color

Teal #008080

teal rgb(0, 128, 128)

Teal is a dark cyan with the hex code #008080, which converts to rgb(0, 128, 128). Open #008080 in the converter to tweak it.

Teal color values

HEX#008080
HEX (shorthand)—
RGBrgb(0, 128, 128)
RGBArgba(0, 128, 128, 1)
8-digit HEX#008080FF
HSLhsl(180, 100%, 25%)
HSV / HSB180°, 100%, 50%
CMYK100%, 0%, 0%, 50%
RGB 0–10, 0.502, 0.502
Decimal32896
CSS keywordteal

How #008080 converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: 00 → 0, 80 → 128, 80 → 128. That gives rgb(0, 128, 128). The step-by-step guide explains the math.

Shades of Teal

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

Tints of Teal

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of Teal 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 Teal 4.77:1AA
Black Teal 4.39:1AA Large only

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

Use Teal in CSS

.element {
  color: teal;                         /* keyword */
  background-color: #008080;            /* hex */
  border-color: rgb(0 128 128 / 50%);    /* 50% transparent */
}

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

Similar named colors

FAQ

What is the HEX code for Teal?

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

What is Teal in RGB?

Teal is rgb(0, 128, 128): red 0, green 128, blue 128 on the 0–255 scale. As normalized 0–1 floats that is (0, 0.502, 0.502).

Is white or black text more readable on Teal?

White text is more readable. White on #008080 has a contrast ratio of 4.77:1 (AA), black on #008080 has 4.39:1 (AA Large only). WCAG AA needs 4.5:1 for normal text.

Copied!