Teal hex code

The hex code for teal is #008080, or rgb(0, 128, 128). CSS also accepts the keyword teal.

#008080
HEX#008080
RGBrgb(0, 128, 128)
HSLhsl(180, 100%, 25%)
HSV / HSBhsv(180, 100%, 50%)
OKLCHoklch(54.31% 0.0927 194.77)
CMYKcmyk(100%, 0%, 0%, 50%)
HEX, 50% opacity#00808080
RGB, 50% opacityrgb(0 128 128 / 50%)
CSS nameteal
Defined inHTML 4.01 (one of the original 16 color names)

About teal

CSS teal (#008080) is equal green and blue at about half strength, one of the 16 HTML 4 color names.

Related blue-greens in CSS include darkcyan (#008B8B), lightseagreen (#20B2AA) and turquoise (#40E0D0).

Shades and tints of teal

Teal lands on the 700 step. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For teal mixed with white, black or gray in even steps, use the tint and shade generator.

50#F2F9F9100#E4F2F2200#C5E6E6300#9CD5D4400#67BEBD500#3FADAC600#009090700#008080800#0D6161900#195050950#0E2E2E

Colors that go with teal

Partner hues are picked on the OKLCH color wheel.

Complementary: the opposite hue

#008080#9E585E

Open in the palette generator · Compare the screen and painter's complements of teal

Analogous: neighboring hues 30° either side

#008080#308062#207A98

Open in the palette generator · See analogous and monochromatic colors of teal on three wheels

Triadic: three hues 120° apart

#008080#845E95#8F672A

Open in the palette generator

Split complementary: the two hues beside the complement

#008080#96597C#9C5D40

Open in the palette generator

Text on teal

White text on teal: 4.77:1
Black text on teal: 4.4:1
TextRatioAA normalAA largeAAA normal
White4.77:1PassPassFail
Black4.4:1FailPassFail

The ratio is the same either way round, so teal text on a white background is also 4.77:1. Check other pairs in the color contrast checker.

Similar named colors

The CSS named colors closest to teal, by deltaE OK distance.

darkcyan #008B8Bseagreen #2E8B57slategray #708090steelblue #4682B4dimgray #696969gray #808080

See all 148 on the color names page.

Closest Tailwind CSS colors

teal-700 v4: teal-700, #00786F, deltaE OK 0.035

teal-700 v3: teal-700, #0F766E, deltaE OK 0.035

In Tailwind CSS v4 it is teal-700 (#00786F), and in v3 teal-700 (#0F766E). For the exact color, use an arbitrary value such as bg-[#008080]. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.

Teal with color vision deficiency

An approximation of how teal may look with protanopia, deuteranopia and tritanopia (simulated with Machado, Oliveira and Fernandes, 2009), and with achromatopsia, shown as a gray of the same luminance.

protanopia #777980deuteranopia #676E81tritanopia #008580achromatopsia #737373

Test a whole palette or image in the color blindness simulator.

Using teal in code

.example {
  color: teal;                 /* named color */
  background-color: #008080;  /* hex */
  border-color: rgb(0, 128, 128);
}

Frequently asked questions

What is the hex code for teal?
#008080. CSS also accepts the keyword teal, which means the same color.
What is teal in RGB?
rgb(0, 128, 128). In HSL it is hsl(180, 100%, 25%), and in OKLCH oklch(54.31% 0.0927 194.77).
What text color goes on teal?
White text has the higher contrast on #008080: 4.77:1, which meets AA for all text. Black text reaches 4.4:1.
What is the closest Tailwind color to teal?
In Tailwind CSS v4 it is teal-700 (#00786F), and in v3 teal-700 (#0F766E). For the exact color, use an arbitrary value such as bg-[#008080].
How do I make teal transparent?
Add an alpha value. Half-transparent teal is #00808080 as 8-digit HEX (80 is 128 out of 255) or rgb(0 128 128 / 50%).