Skip to content

Tailwind CSS v4 default palette

Tailwind green-700: #008236

In Tailwind CSS v4, green-700 is defined as --color-green-700: oklch(52.7% 0.154 150.069), which is #008236 in hex and rgb(0, 130, 54): a medium-dark, vivid green. In Tailwind v3, green-700 was #15803D.

green-700#008236

In OKLCH, green-700 has a lightness of 52.7%, chroma 0.154 and hue 150.1°.

This OKLCH value lies outside sRGB. The hex #008236 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.1984 0.5018 0.2453).

In v3, green-700 was #15803D. The v4 value is ΔE OK 1.7 away, below the point where most people can tell them apart; 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-700

Color codes for green-700
Tailwind v4 token--color-green-700
OKLCH (source value)oklch(52.7% 0.154 150.069)
HEX#008236
RGBrgb(0, 130, 54)
HSLhsl(145, 100%, 25%)
HWBhwb(145 0% 49%)
CMYK (naive, no ICC profile)cmyk(100%, 0%, 58%, 49%)
Decimal33,334
Display P3color(display-p3 0.1984 0.5018 0.2453)
Tailwind v3 hex#15803D
Utility classesbg-green-700, text-green-700, border-green-700

Tailwind green scale

Contrast and accessibility

On green-700, white text has a contrast ratio of 4.94:1 and passes AA for normal text; black text reaches 4.24: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-7004.24:1FailPassFailFail30.5
White text on green-7004.94:1PassPassFailPass−79.0
Green-700 text on white4.94:1PassPassFailPass73.6
Green-700 text on black4.24:1FailPassFailFail−28.1

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #0d8840
  2. 15%
    #269554
  3. 25%
    #40a168
  4. 35%
    #59ae7c
  5. 45%
    #73ba90
  6. 55%
    #8cc7a5
  7. 65%
    #a6d3b9
  8. 75%
    #bfe0cd
  9. 85%
    #d9ece1
  10. 95%
    #f2f9f5

Shades (mixed with black)

  1. 5%
    #007c33
  2. 15%
    #006f2e
  3. 25%
    #006229
  4. 35%
    #005523
  5. 45%
    #00481e
  6. 55%
    #003a18
  7. 65%
    #002e13
  8. 75%
    #00210e
  9. 85%
    #001408
  10. 95%
    #000703

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, green-700's complementary color is #9A4394 (close to darkmagenta), its analogous colors are #617600 and #00806E, and its triadic partners are #4A61C3 and #B33E30. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#9a4394
Analogous−30°, +30°#617600#00806e
Triadic+120°, +240°#4a61c3#b33e30
Split-complementary+150°, +210°#7a51b5#ad3b67

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-700 is a cool color: its hue is 145° 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
green#0080003.2
forestgreen#228b224.0
seagreen#2e8b575.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
lime-700#497d005.0
emerald-700#007a555.5
emerald-600#0099667.8

Code snippets

Tailwind CSS
<div class="bg-green-700 text-white">...</div>
<p class="text-green-700 border-green-700">...</p>
CSS
.element {
  color: var(--color-green-700);
  background-color: oklch(52.7% 0.154 150.069);
  border-color: #008236;
  outline-color: rgb(0 130 54);
}
SwiftUI
import SwiftUI

extension Color {
  static let green700 = Color(red: 0.000, green: 0.510, blue: 0.212)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const green700 = Color(0xFF008236);
Android XML
<!-- res/values/colors.xml -->
<color name="green_700">#008236</color>

Frequently asked questions

What is the hex code for Tailwind green-700?
In Tailwind CSS v4, green-700 is oklch(52.7% 0.154 150.069), which converts to #008236 (rgb(0, 130, 54)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #15803D.
What is the difference between green-700 in Tailwind v3 and v4?
v3 used the hex #15803D; v4 redefined the palette in OKLCH as oklch(52.7% 0.154 150.069). In v3, green-700 was #15803D. The v4 value is ΔE OK 1.7 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use green-700 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-green-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on green-700?
White text on green-700 has a contrast ratio of 4.94:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 4.24:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −79.0 for white and Lc 30.5 for black.
Which CSS named color is closest to green-700?
The closest is green (#008000) at ΔE OK 3.2, followed by forestgreen and seagreen.

Last reviewed by Arielton Oberek.