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.

The studio needs JavaScript.

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.

  1. 50#D4FFFE
    White
    1.07
    Black
    19.53
  2. 100#AEFCFB
    White
    1.15
    Black
    18.11
  3. 200#95E9E8
    White
    1.39
    Black
    15.09
  4. 300#75D0CF
    White
    1.79
    Black
    11.67
  5. 400#52B3B3
    White
    2.48
    Black
    8.45
  6. 500#2F9797
    White
    3.50
    Black
    5.99
  7. 600This color#008080
    White
    4.77
    Black
    4.39
  8. 700#006565
    White
    6.88
    Black
    3.04
  9. 800#004A4A
    White
    10.10
    Black
    2.07
  10. 900#003030
    White
    14.32
    Black
    1.46
  11. 950#001B1B
    White
    17.90
    Black
    1.17

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.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • 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.

Use the wider color where screens show it
.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
In CSS
/* 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.

VisionThe pairΔE2000Verdict
Normal vision#008080 · #9E585E46.0Stays distinct
Protanopia#777980 · #66645E11.1Stays distinct
Deuteranopia#676E81 · #77725D20.3Stays distinct
Tritanopia#008580 · #AA505A50.9Stays distinct
Achromatopsia#737373 · #6C6C6C2.7Easily 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
  • Base#008080
  • +120°#845E95
  • +240°#8F672A
  • Base#008080
  • +150°#96597C
  • +210°#9C5D40

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-teal: #008080;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        teal: '#008080',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-teal: oklch(0.543 0.093 194.8);
}

Design token (W3C DTCG)

{
  "color": {
    "teal": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0, 0.502, 0.502],
        "hex": "#008080"
      },
      "$description": "CSS named color teal"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let teal = Color(.sRGB, red: 0.000, green: 0.502, blue: 0.502, opacity: 1)
}

Jetpack Compose color

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.