Inspect Teal (#008080) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
Teal
#008080
White text reads best on this background, at 4.77:1.
Teal is one of the 148 CSS named colors, and resolves to #008080 in every browser. In numbers that is rgb(0, 128, 128) and hsl(180, 100%, 25%). Perceptually it is a mid-toned, muted color: OKLCH puts its lightness at 54% and its chroma at 0.093. It sits in the cyans at 195 degrees of OKLCH hue, and reads as a cool color.
White text clears WCAG AA on a Teal background at 4.77:1. That combination of lightness and chroma makes it a workable mid-tone, the kind of value that lands in the middle of a shade scale.
The closest CSS named colors to Teal, measured with CIEDE2000, are DarkCyan (#008B8B), CadetBlue (#5F9EA0), LightSeaGreen (#20B2AA). If Teal is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#008080
RGB
rgb(0, 128, 128)
HSL
hsl(180, 100%, 25%)
HWB
hwb(180 0% 50%)
CMYK
cmyk(100%, 0%, 0%, 50%)
LAB
lab(47.99 -30.39 -8.98)
LCH
lch(47.99 31.69 196.45)
OKLCH
oklch(54.31% 0.0927 194.77)
WCAG asks for 4.5:1 between body text and its background. On #008080 white text measures 4.77:1 and black text 4.4:1, so white clears it and black does not.
White text on Teal
WCAG 2.2
4.77:1
APCA
Lc 77
Passes AA body text
Fails AAA body text
Passes AA large text
Black text on Teal
WCAG 2.2
4.4:1
APCA
Lc 31
Fails AA body text
Fails AAA body text
Passes AA large text
Check Teal against any other color in the contrast checker.
Teal sits at 54% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #E3FFFE and down to #000808, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#339B9A
20% lighter
#53B6B6
40% lighter
#70D2D2
60% lighter
#8DEFEE
80% lighter
#E3FFFE
100% lighter
#006565
20% darker
#004B4B
40% darker
#003333
60% darker
#001C1C
80% darker
#000808
100% darker
Build a full accessible scale from #008080 in the shade generator.
Hues rotated around #008080 in OKLCH, then pulled back into the sRGB gamut. Each swatch is labelled with the nearest CSS named color so you have a keyword to start from.
Teal sits at 195 degrees. Rotating it a half turn lands on 15 degrees, the hue directly opposite. It is the strongest pairing you can make without changing lightness, and the one most likely to vibrate if you use both at full chroma.
The neighbors of Teal at 165 and 225 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
195, 315 and 75 degrees divide the wheel into thirds. Balanced enough to carry a whole palette without one color dominating the other two.
Instead of the complement at 15 degrees, this pair flanks it at 345 and 45. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around Teal on the color wheel.
The biggest shift is under deuteranopia, where #008080 reads as #515C82, 26.2 CIEDE2000 units away. If Teal is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#6D7180
Deuteranopia
#515C82
Tritanopia
#008A7F
Achromatopsia
#656565
The nearest CSS keywords to #008080, ranked by perceptual distance rather than by how close their hex digits happen to look.