CSS named color
Teal #008080
The CSS keyword teal is #008080. It is a muted teal in the cyan family. In OKLCH it sits at lightness 0.543, chroma 0.093 and hue 194.8°.
- Relative luminance
- 0.1700
- OKLCH L · C · h
- 0.543 · 0.093 · 194.8
- Best text
- White 4.77:1
- Hue family
- Cyan
#008080 color codes
- HEX
#008080- RGB
rgb(0, 128, 128)- HSL
hsl(180, 100%, 25%)- OKLCH
oklch(0.543 0.093 194.8)- OKLab
oklab(0.543 -0.090 -0.024)- CIELAB (D65)
L* 48.25, a* -28.85, b* -8.48- XYZ (D65)
X 11.61, Y 17.00, Z 23.09- CMYK (naive)
cmyk(100%, 0%, 0%, 50%)
CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.
Legibility
Contrast: is #008080 accessible?
White text on it reaches 4.77:1, passing AA. Black text manages only 4.39:1, enough for large text only.
WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.
Open the Contrast System-
Black text on it
4.39:1
- AA fails
- AA large passes
- AAA fails
- APCA Lc +31
-
White text on it
4.77:1
- AA passes
- AA large passes
- AAA fails
- APCA Lc −77
-
As text on black
4.39:1
- AA fails
- AA large passes
- AAA fails
- APCA Lc −29
-
As text on white
4.77:1
- AA passes
- AA large passes
- AAA fails
- APCA Lc +72
Nearest versions that pass 4.5:1
-
For text on white
#008080 4.77:1
It already reaches 4.77:1 on white, so no change is needed.
-
For text on black
#058281 4.51:1
Lightening its OKLCH lightness from 0.54 to 0.55 reaches 4.51:1 on black, keeping the hue.
Checking another pair? Use the Contrast Checker.
Studio
Adjust #008080 live
Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.
Scale
Shades and tints of #008080
Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #008080 sits at step 600.
Under each step, white and black text on it; a bold figure passes 4.5:1.
Gamut
How vivid #008080 can get
At its lightness and hue, sRGB reaches OKLCH chroma 0.093; #008080 uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.125 there: 34% more.
- sRGB
- Display P3
- Rec. 2020
- Dominant wavelength
- OKLCH chroma
- 0.093
- sRGB edge
- 0.093
- Display P3 edge
- 0.125
- Rec. 2020 edge
- 0.202
- Dominant wavelength
- 491 nm
- Excitation purity
- 32%
- Chromaticity
- x 0.2247, y 0.3288
- This color#008080
- Most vivid in sRGB#008080
- Most vivid in Display P3oklch(0.543 0.125 194.8)
On a screen without Display P3 the last tile shows the sRGB edge instead.
.accent {
color: #008080;
}
@media (color-gamut: p3) {
.accent { color: color(display-p3 0 0.5106 0.5187); }
}
Mixing
Mixing #008080
Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.
White #FFFFFF
- sRGB50%#80C0C0
- OKLab50%#93BEBE
- OKLCH50%#93BEBE
Black #000000
- sRGB50%#004040
- OKLab50%#002E2E
- OKLCH50%#002E2E
Its complement #9E585E
- sRGB50%#4F6C6F
- OKLab50%#6F6F6F
- OKLCH50%#78722B
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #008080, white);
color: color-mix(in oklch, #008080 50%, white);
In use
#008080 in an interface
A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.
Light page
- Button labelText, 4.5:14.77:1 Passes
- Link and body-size textText, 4.5:14.77:1 Passes
- Large headingLarge text, 3:14.77:1 Passes
- Icons, borders and focus ringsNon-text, 3:14.77:1 Passes
Dark page
- Button labelText, 4.5:14.77:1 Passes
- Link and body-size textText, 4.5:13.92:1 Fails
- Large headingLarge text, 3:13.92:1 Passes
- Icons, borders and focus ringsNon-text, 3:13.92:1 Passes
For text on this page, the nearest shade that passes is #1B8B8A 4.55:1
Color vision
How #008080 looks with color blindness
Deuteranopia changes it most, ΔE2000 22.9; tritanopia changes it least, 2.7.
Simulated with Machado et al. (2009) at full severity, in linear light.
Simulate a whole page What each type sees-
Protanopia
No working red (long-wavelength) cones
#777980 ΔE2000 22.6
Distinct
Reads as gray
-
Deuteranopia
No working green (medium-wavelength) cones
#676E81 ΔE2000 22.9
Distinct
Reads as grayish blue
-
Tritanopia
No working blue (short-wavelength) cones
#008580 ΔE2000 2.7
Close match
Reads as muted cyan
-
Achromatopsia
No cone color vision; lightness only
#737373 ΔE2000 21.5
Distinct
Reads as gray
Pairing check
Checked against its complement, #9E585E. Their lightness contrast is only 1.09:1, so where hue collapses, add a label, icon or pattern.
| Vision | The pair | ΔE2000 | Verdict |
|---|---|---|---|
| Normal vision | #008080 · #9E585E | 46.0 | Stays distinct |
| Protanopia | #777980 · #66645E | 11.1 | Stays distinct |
| Deuteranopia | #676E81 · #77725D | 20.3 | Stays distinct |
| Tritanopia | #008580 · #AA505A | 50.9 | Stays distinct |
| Achromatopsia | #737373 · #6C6C6C | 2.7 | Easily confused |
Harmony
Color harmonies for #008080
Its complement is #9E585E, a muted brown, on the warm side of the wheel.
Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.
Open the Harmony Studio- Base#008080
- Complement#9E585E
Complementary
Open in Harmony Studio- −30°#308062
- Base#008080
- +30°#207A98
Analogous
Open in Harmony Studio- Base#008080
- +120°#845E95
- +240°#8F672A
Triadic
Open in Harmony Studio- Base#008080
- +150°#96597C
- +210°#9C5D40
Split-complementary
Open in Harmony StudioCode
Design tokens
Ready-to-paste tokens in six formats. Rename them to fit your system.
:root {
--color-teal: #008080;
}
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
teal: '#008080',
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
--color-teal: oklch(0.543 0.093 194.8);
}
{
"color": {
"teal": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0, 0.502, 0.502],
"hex": "#008080"
},
"$description": "CSS named color teal"
}
}
}
import SwiftUI
enum Palette {
static let teal = Color(.sRGB, red: 0.000, green: 0.502, blue: 0.502, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val Teal = Color(0xFF008080)
}
Matches
The nearest match in each system
The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.
Tools
Open #008080 in the tools
Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.
- Color InspectorEvery format, its names, contrast and color vision in one panel.
- Contrast SystemBlack and white text on this color, with fixes in both directions.
- Harmony StudioPalettes built from this color, walked to a contrast target if you ask.
- Color Space ConverterThe same color in 34 notations, with its gamut headroom.
- Color Name FinderThe nearest of 1,055 color names by ΔE2000.