Teal
Teal is a dark, vivid color from the cyan family. Hex code #008080.
Color codes
- CSS name
teal - HEX
#008080 - RGB
rgb(0 128 128) - HSL
hsl(180 100% 25%) - HSB / HSV
hsb(180, 100%, 50%) - OKLCH
oklch(54.3% 0.093 194.8) - CMYK
cmyk(100%, 0%, 0%, 50%)
White text
4.77:1 · passes WCAG AA
Black text
4.39:1 · passes WCAG AA for large text only
Shades
Complementary
Analogous
Triadic
About this color
Teal in CSS and design
Teal is a dark, vivid color from the cyan family. Teal is one of the 16 basic color keywords, which go back to HTML 4, long before CSS had 148 named colors.
Use it in CSS by name or by any of its codes; these all give the same color:
color: teal;
color: #008080;
color: rgb(0 128 128);
color: hsl(180 100% 25%);For text on teal, white reads best. Check other combinations with the contrast checker, or browse all CSS color names.
More tools
Work with this color
- Color picker and converterPick a color and get HEX, RGB, HSL, HSB, CMYK and OKLCH, plus shades and harmonies.
- Contrast checkerCheck text and background colors against WCAG AA and AAA, and fix failing ones.
- CSS color namesAll 148 named colors with hex codes, shades, contrast and matching palettes.
- Palette generatorBuild a color palette from harmony rules, with shades and CSS variables.
Frequently asked questions
What is the hex code for teal?
#008080. In CSS you can also use the keyword teal, which works in every browser.
What is teal in RGB and HSL?
In RGB it is rgb(0 128 128), in HSL hsl(180 100% 25%). For print, cmyk(100%, 0%, 0%, 50%) is a starting point, but CMYK depends on paper and ink, so check with your printer.
Should I use black or white text on teal?
White text works better: it has a contrast ratio of 4.77:1 and passes WCAG AA. Black text reaches 4.39:1.
Which colors go with teal?
Its complementary color is #9E585E, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #308062 and #207A98. The palette generator builds more combinations.