Skip to content

Tailwind CSS v4 default palette

Tailwind green-600: #00A63E

In Tailwind CSS v4, green-600 is defined as --color-green-600: oklch(62.7% 0.194 149.214), which is #00A63E in hex and rgb(0, 166, 62): a medium, vivid green. In Tailwind v3, green-600 was #16A34A.

green-600#00A63E

In OKLCH, green-600 has a lightness of 62.7%, chroma 0.194 and hue 149.2°.

This OKLCH value lies outside sRGB. The hex #00A63E 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.2439 0.6408 0.2948).

In v3, green-600 was #16A34A. The v4 value is ΔE OK 2.4 away; v4 is more saturated.

Tailwind green is the standard success color; in v4 its mid shades moved to a more saturated OKLCH green than the v3 hex values.

Color codes for green-600

Color codes for green-600
Tailwind v4 token--color-green-600
OKLCH (source value)oklch(62.7% 0.194 149.214)
HEX#00A63E
RGBrgb(0, 166, 62)
HSLhsl(142, 100%, 33%)
HWBhwb(142 0% 35%)
CMYK (naive, no ICC profile)cmyk(100%, 0%, 63%, 35%)
Decimal42,558
Display P3color(display-p3 0.2439 0.6408 0.2948)
Tailwind v3 hex#16A34A
Utility classesbg-green-600, text-green-600, border-green-600

Tailwind green scale

Contrast and accessibility

On green-600, black text has a contrast ratio of 6.52:1 and passes AA for normal text; white text reaches 3.21: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 green-6006.52:1PassPassFailPass45.4
White text on green-6003.21:1FailPassFailFail−64.1
Green-600 text on white3.21:1FailPassFailFail58.7
Green-600 text on black6.52:1PassPassFailPass−43.1

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #0daa48
  2. 15%
    #26b35b
  3. 25%
    #40bc6e
  4. 35%
    #59c582
  5. 45%
    #73ce95
  6. 55%
    #8cd7a8
  7. 65%
    #a6e0bb
  8. 75%
    #bfe9cf
  9. 85%
    #d9f2e2
  10. 95%
    #f2fbf5

Shades (mixed with black)

  1. 5%
    #009e3b
  2. 15%
    #008d35
  3. 25%
    #007d2f
  4. 35%
    #006c28
  5. 45%
    #005b22
  6. 55%
    #004b1c
  7. 65%
    #003a16
  8. 75%
    #002a10
  9. 85%
    #001909
  10. 95%
    #000803

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, green-600's complementary color is #C553C0 (close to mediumorchid), its analogous colors are #7E9500 and #00A28A, and its triadic partners are #5A7BFC and #E64B3C. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#c553c0
Analogous−30°, +30°#7e9500#00a28a
Triadic+120°, +240°#5a7bfc#e64b3c
Split-complementary+150°, +210°#9b65eb#de4785

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 green-600 is a cool color: its hue is 142° 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
forestgreen#228b227.6
mediumseagreen#3cb3717.8
olivedrab#6b8e239.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
lime-600#5ea5006.4
emerald-600#0099667.1
emerald-500#00bc7d8.4

Code snippets

Tailwind CSS
<div class="bg-green-600 text-black">...</div>
<p class="text-green-600 border-green-600">...</p>
CSS
.element {
  color: var(--color-green-600);
  background-color: oklch(62.7% 0.194 149.214);
  border-color: #00a63e;
  outline-color: rgb(0 166 62);
}
SwiftUI
import SwiftUI

extension Color {
  static let green600 = Color(red: 0.000, green: 0.651, blue: 0.243)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const green600 = Color(0xFF00A63E);
Android XML
<!-- res/values/colors.xml -->
<color name="green_600">#00A63E</color>

Frequently asked questions

What is the hex code for Tailwind green-600?
In Tailwind CSS v4, green-600 is oklch(62.7% 0.194 149.214), which converts to #00A63E (rgb(0, 166, 62)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #16A34A.
What is the difference between green-600 in Tailwind v3 and v4?
v3 used the hex #16A34A; v4 redefined the palette in OKLCH as oklch(62.7% 0.194 149.214). In v3, green-600 was #16A34A. The v4 value is ΔE OK 2.4 away; v4 is more saturated.
How do I use green-600 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-green-600). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on green-600?
White text on green-600 has a contrast ratio of 3.21:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 6.52:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −64.1 for white and Lc 45.4 for black.
Which CSS named color is closest to green-600?
The closest is forestgreen (#228B22) at ΔE OK 7.6, followed by mediumseagreen and olivedrab.

Last reviewed by Arielton Oberek.