Skip to content

Tailwind CSS v4 default palette

Tailwind teal-800: #005F5A

In Tailwind CSS v4, teal-800 is defined as --color-teal-800: oklch(43.7% 0.078 188.216), which is #005F5A in hex and rgb(0, 95, 90): a dark, muted cyan. In Tailwind v3, teal-800 was #115E59.

teal-800#005F5A

In OKLCH, teal-800 has a lightness of 43.7%, chroma 0.078 and hue 188.2°.

This OKLCH value lies outside sRGB. The hex #005F5A is the sRGB fallback from the CSS Color 4 gamut mapping algorithm; on Display P3 screens browsers show a more saturated color, close to color(display-p3 0.1457 0.3671 0.3507).

In v3, teal-800 was #115E59. The v4 value is ΔE OK 0.7 away, below the point where most people can tell them apart; v4 is more saturated.

Tailwind teal is a blue-green between emerald and cyan, often used as a calm brand accent.

Color codes for teal-800

Color codes for teal-800
Tailwind v4 token--color-teal-800
OKLCH (source value)oklch(43.7% 0.078 188.216)
HEX#005F5A
RGBrgb(0, 95, 90)
HSLhsl(177, 100%, 19%)
HWBhwb(177 0% 63%)
CMYK (naive, no ICC profile)cmyk(100%, 0%, 5%, 63%)
Decimal24,410
Display P3color(display-p3 0.1457 0.3671 0.3507)
Tailwind v3 hex#115E59
Utility classesbg-teal-800, text-teal-800, border-teal-800

Tailwind teal scale

Contrast and accessibility

On teal-800, white text has a contrast ratio of 7.54:1 and passes AAA at any text size; black text reaches 2.78:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on teal-8002.78:1FailFailFailFail18.3
White text on teal-8007.54:1PassPassPassPass−90.5
Teal-800 text on white7.54:1PassPassPassPass85.7
Teal-800 text on black2.78:1FailFailFailFail−16.3

Tints and shades

Each step mixes var(--color-teal-800) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-teal-800), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #0d6762
  2. 15%
    #267773
  3. 25%
    #408783
  4. 35%
    #599794
  5. 45%
    #73a7a4
  6. 55%
    #8cb7b5
  7. 65%
    #a6c7c5
  8. 75%
    #bfd7d6
  9. 85%
    #d9e7e6
  10. 95%
    #f2f7f7

Shades (mixed with black)

  1. 5%
    #005a56
  2. 15%
    #00514d
  3. 25%
    #004744
  4. 35%
    #003e3b
  5. 45%
    #003432
  6. 55%
    #002b28
  7. 65%
    #00211f
  8. 75%
    #001817
  9. 85%
    #000e0e
  10. 95%
    #000505

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, teal-800's complementary color is #763E49 (close to saddlebrown), its analogous colors are #255F41 and #025C6E, and its triadic partners are #5E4573 and #6E491C. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#763e49
Analogous−30°, +30°#255f41#025c6e
Triadic+120°, +240°#5e4573#6e491c
Split-complementary+150°, +210°#6d4060#764131

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

Tailwind teal-800 is a cool color: its hue is 177° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
darkslategray#2f4f4f5.3
darkolivegreen#556b2f10.5
teal#00808010.8

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
emerald-800#0060453.6
cyan-800#005f785.3
teal-900#0b4f4a5.3

Code snippets

Tailwind CSS
<div class="bg-teal-800 text-white">...</div>
<p class="text-teal-800 border-teal-800">...</p>
CSS
.element {
  color: var(--color-teal-800);
  background-color: oklch(43.7% 0.078 188.216);
  border-color: #005f5a;
  outline-color: rgb(0 95 90);
}
SwiftUI
import SwiftUI

extension Color {
  static let teal800 = Color(red: 0.000, green: 0.373, blue: 0.353)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Teal800 = Color(0xFF005F5A)
Flutter
import 'package:flutter/material.dart';

const teal800 = Color(0xFF005F5A);
Android XML
<!-- res/values/colors.xml -->
<color name="teal_800">#005F5A</color>

Frequently asked questions

What is the hex code for Tailwind teal-800?
In Tailwind CSS v4, teal-800 is oklch(43.7% 0.078 188.216), which converts to #005F5A (rgb(0, 95, 90)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #115E59.
What is the difference between teal-800 in Tailwind v3 and v4?
v3 used the hex #115E59; v4 redefined the palette in OKLCH as oklch(43.7% 0.078 188.216). In v3, teal-800 was #115E59. The v4 value is ΔE OK 0.7 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use teal-800 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-teal-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on teal-800?
White text on teal-800 has a contrast ratio of 7.54:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.78:1 and fails AA even for large text. In APCA terms that is Lc −90.5 for white and Lc 18.3 for black.
Which CSS named color is closest to teal-800?
The closest is darkslategray (#2F4F4F) at ΔE OK 5.3, followed by darkolivegreen and teal.

Last reviewed by Arielton Oberek.