Free Accessible CSS Gradient Generator

← All Colors
#008080 Teal

Teal Hex Code #008080

Teal is a medium, strong cyan with the hex code #008080. In RGB it is 0, 128, 128, and in HSL it is 180°, 100%, 25%. It is one of the 148 named colors in CSS, so you can write “teal” instead of the hex code.

HEX
#008080
RGB
rgb(0, 128, 128)
HSL
hsl(180, 100%, 25%)
HSV
hsv(180°, 100%, 50%)
CMYK
cmyk(100%, 0%, 0%, 50%)
CSS name
teal

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Teal

On a white background Teal has a contrast ratio of 4.77:1 (AA), and on black 4.40:1 (AA Large). White text is the better choice on top of it.

It sits on the cool side of the color wheel, a range that tends to feel calm and appears to recede.

Cyan, teal and turquoise sit between green and blue and feel fresh and clean. They are popular in technology, health and water-related designs.

Good to know: Teal (#008080) is cyan at half intensity: green and blue are both 128, and red is zero.

Shades and tints of Teal

Tints mix Teal with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Teal

These schemes are calculated from Teal on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Teal is #802500, close to the named color Maroon.

Teal contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Teal scores against white and black.

Contrast of Teal with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 4.77:1 ✓ Pass ✓ Pass ✕ Fail ✓ Pass
Black (#000000) 4.40:1 ✕ Fail ✓ Pass ✕ Fail ✕ Fail
Aa White text on Teal4.77:1
Aa Black text on Teal4.40:1

Teal and color blindness

These are approximate previews of how Teal can look with the main types of color vision deficiency.

Protanopia #777980

Teal changes noticeably.

Deuteranopia #676E81

Teal changes noticeably.

Tritanopia #008580

Teal looks almost the same.

Achromatopsia #737373

Teal changes noticeably.

Gradients with Teal

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Teal to a lighter tint

background: linear-gradient(135deg, #008080 0%, #99cccc 100%);

Teal to its analogous neighbour

background: linear-gradient(135deg, #008080 0%, #004080 100%);

Teal to its complement

background: linear-gradient(135deg, #008080 0%, #800000 100%);

Colors similar to Teal

How each close match differs from Teal.

More cyan & teal colors →

Use Teal in code

CSS
.element {
  color: #008080;
  background-color: #008080;
  border-color: teal;   /* teal is a valid CSS color name */
}
CSS variable
:root {
  --color-teal: #008080;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#008080] text-[#008080] border-[#008080]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-teal: #008080;
}

Teal questions

What is the hex code for Teal?

The hex code for Teal is #008080. In RGB that is rgb(0, 128, 128), and in HSL it is hsl(180, 100%, 25%).

What is the complementary color of Teal?

On the RGB (screen) color wheel, the complement of Teal is #800000, which is close to Maroon. On the artist’s RYB wheel it is #802500, close to Maroon.

Should I use white or black text on Teal?

White text. It has a contrast ratio of 4.77:1 against Teal, which is WCAG AA. The other option scores 4.40:1.

Is Teal accessible as a text color on white?

Yes. Teal on white scores 4.77:1, which passes WCAG AA for normal text (4.5:1).

What are darker and lighter shades of Teal?

Mixing Teal with black gives #006666, #004D4D, #003333, #001A1A (20% to 80% black). Mixing it with white gives #339999, #66B3B3, #99CCCC, #CCE6E6 (20% to 80% white).

More color tools