Skip to content

Tailwind CSS v4 default palette

Tailwind teal-300: #46ECD5

In Tailwind CSS v4, teal-300 is defined as --color-teal-300: oklch(85.5% 0.138 181.071), which is #46ECD5 in hex and rgb(70, 236, 213): a very light, moderately saturated cyan. In Tailwind v3, teal-300 was #5EEAD4.

teal-300#46ECD5

In OKLCH, teal-300 has a lightness of 85.5%, chroma 0.138 and hue 181.1°.

The value fits inside sRGB, so the hex #46ECD5 represents it without loss on any screen.

In v3, teal-300 was #5EEAD4. The v4 value is ΔE OK 1.3 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-300

Color codes for teal-300
Tailwind v4 token--color-teal-300
OKLCH (source value)oklch(85.5% 0.138 181.071)
HEX#46ECD5
RGBrgb(70, 236, 213)
HSLhsl(172, 81%, 60%)
HWBhwb(172 27% 7%)
CMYK (naive, no ICC profile)cmyk(70%, 0%, 10%, 7%)
Decimal4,648,149
Tailwind v3 hex#5EEAD4
Utility classesbg-teal-300, text-teal-300, border-teal-300

Tailwind teal scale

Contrast and accessibility

On teal-300, black text has a contrast ratio of 14.21:1 and passes AAA at any text size; white text reaches 1.47: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-30014.21:1PassPassPassPass81.6
White text on teal-3001.47:1FailFailFailFail−25.1
Teal-300 text on white1.47:1FailFailFailFail22.1
Teal-300 text on black14.21:1PassPassPassPass−81.2

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #4fedd7
  2. 15%
    #62efdb
  3. 25%
    #74f1e0
  4. 35%
    #87f3e4
  5. 45%
    #99f5e8
  6. 55%
    #acf6ec
  7. 65%
    #bef8f0
  8. 75%
    #d1faf5
  9. 85%
    #e3fcf9
  10. 95%
    #f6fefd

Shades (mixed with black)

  1. 5%
    #43e0ca
  2. 15%
    #3cc9b5
  3. 25%
    #35b1a0
  4. 35%
    #2e998a
  5. 45%
    #278275
  6. 55%
    #1f6a60
  7. 65%
    #19534b
  8. 75%
    #123b35
  9. 85%
    #0b2320
  10. 95%
    #040c0b

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, teal-300's complementary color is #FFB1CB (close to lightpink), its analogous colors are #86E9A0 and #39E7FF, and its triadic partners are #DCBFFF and #FFBB75. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#ffb1cb
Analogous−30°, +30°#86e9a0#39e7ff
Triadic+120°, +240°#dcbfff#ffbb75
Split-complementary+150°, +210°#ffadf9#ffb6a6

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-300 is a cool color: its hue is 172° 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
turquoise#40e0d03.5
aqua#00ffff6.3
aquamarine#7fffd46.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
emerald-300#5ee9b54.1
cyan-300#53eafd6.1
green-300#7bf1a86.9

Code snippets

Tailwind CSS
<div class="bg-teal-300 text-black">...</div>
<p class="text-teal-300 border-teal-300">...</p>
CSS
.element {
  color: var(--color-teal-300);
  background-color: oklch(85.5% 0.138 181.071);
  border-color: #46ecd5;
  outline-color: rgb(70 236 213);
}
SwiftUI
import SwiftUI

extension Color {
  static let teal300 = Color(red: 0.275, green: 0.925, blue: 0.835)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const teal300 = Color(0xFF46ECD5);
Android XML
<!-- res/values/colors.xml -->
<color name="teal_300">#46ECD5</color>

Frequently asked questions

What is the hex code for Tailwind teal-300?
In Tailwind CSS v4, teal-300 is oklch(85.5% 0.138 181.071), which converts to #46ECD5 (rgb(70, 236, 213)) in sRGB. In Tailwind v3 the same name was #5EEAD4.
What is the difference between teal-300 in Tailwind v3 and v4?
v3 used the hex #5EEAD4; v4 redefined the palette in OKLCH as oklch(85.5% 0.138 181.071). In v3, teal-300 was #5EEAD4. The v4 value is ΔE OK 1.3 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use teal-300 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-teal-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on teal-300?
White text on teal-300 has a contrast ratio of 1.47:1, which fails AA even for large text under WCAG 2.2. Black text reaches 14.21:1 and passes both AA and AAA. In APCA terms that is Lc −25.1 for white and Lc 81.6 for black.
Which CSS named color is closest to teal-300?
The closest is turquoise (#40E0D0) at ΔE OK 3.5, followed by aqua and aquamarine.

Last reviewed by Arielton Oberek.