CSS color names · Greens

Teal color: hex #008080, RGB and HSL

Teal is the CSS keyword teal, hex #008080, rgb(0, 128, 128), hsl(180, 100%, 25%). It is a dark, fully saturated cyan in the greens family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
teal
Hex
#008080
RGB
rgb(0, 128, 128)
HSL
hsl(180, 100%, 25%)
On white
4.77:1 — passes AA for body text
On black
4.4:1 — large text and UI only (3:1)
.example {
  color: teal;          /* keyword */
  color: #008080;          /* hex */
  color: rgb(0, 128, 128); /* rgb */
  color: hsl(180, 100%, 25%); /* hsl */
}

What colors go with teal

Each match keeps teal's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside teal as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#800040
#804000

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#008040
#004080

Tints and shades of teal

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as teal — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#00c0c0
#00ffff · cyan
#40ffff
#80ffff
#bfffff

Shades (darker)

#006b6b
#005555
#004040
#002b2b
#001515

A UI color palette built from teal

The eight semantic roles an interface actually uses, derived from teal as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#008080
secondary
#800040
accent
#804000
background
#fcfdfd
surface
#f3f7f7
text
#112222
muted
#568f8f
border
#dfecec
Dark mode
primary
#1affff
secondary
#ff1a8c
accent
#ff8c1a
background
#0e1b1b
surface
#152828
text
#f3f6f6
muted
#94b8b8
border
#274949

Using teal in an interface

Green means success and 'on' — reserve one green for that job before you use another as a brand color. Sea green, forest green and teal are calm enough to lead a palette; the neon greens are for dark-mode accents and little else. Whichever role teal takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Teal?
Teal is #008080. In CSS the keyword teal, the hex #008080, rgb(0, 128, 128) and hsl(180, 100%, 25%) all paint the same color.
What colors go with Teal?
Its complement is #800000, the split-complementary pair is #800040 and #804000, the triadic partners are #800080 and #808000, and the analogous neighbors are #008040 and #004080. In an interface, use Teal for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Teal on the color wheel?
The opposite (complementary) color is #800000, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Teal for text?
Teal as text on white has a contrast ratio of 4.77:1, which passes WCAG AA for body text (4.5:1). On black it is 4.4:1, which fails for body text. It works as a text color on light surfaces.

Similar named colors

More greens

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.