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.
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
| Tailwind v4 token | --color-green-700 |
|---|---|
| OKLCH (source value) | oklch(52.7% 0.154 150.069) |
| HEX | #008236 |
| RGB | rgb(0, 130, 54) |
| HSL | hsl(145, 100%, 25%) |
| HWB | hwb(145 0% 49%) |
| CMYK (naive, no ICC profile) | cmyk(100%, 0%, 58%, 49%) |
| Decimal | 33,334 |
| Display P3 | color(display-p3 0.1984 0.5018 0.2453) |
| Tailwind v3 hex | #15803D |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on green-700 | 4.24:1 | Fail | Pass | Fail | Fail | 30.5 |
| White text on green-700 | 4.94:1 | Pass | Pass | Fail | Pass | −79.0 |
| Green-700 text on white | 4.94:1 | Pass | Pass | Fail | Pass | 73.6 |
| Green-700 text on black | 4.24:1 | Fail | Pass | Fail | Fail | −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)
- 5%
#0d8840 - 15%
#269554 - 25%
#40a168 - 35%
#59ae7c - 45%
#73ba90 - 55%
#8cc7a5 - 65%
#a6d3b9 - 75%
#bfe0cd - 85%
#d9ece1 - 95%
#f2f9f5
Shades (mixed with black)
- 5%
#007c33 - 15%
#006f2e - 25%
#006229 - 35%
#005523 - 45%
#00481e - 55%
#003a18 - 65%
#002e13 - 75%
#00210e - 85%
#001408 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| green | #008000 | 3.2 |
| forestgreen | #228b22 | 4.0 |
| seagreen | #2e8b57 | 5.6 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| lime-700 | #497d00 | 5.0 |
| emerald-700 | #007a55 | 5.5 |
| emerald-600 | #009966 | 7.8 |
Code snippets
<div class="bg-green-700 text-white">...</div>
<p class="text-green-700 border-green-700">...</p>.element {
color: var(--color-green-700);
background-color: oklch(52.7% 0.154 150.069);
border-color: #008236;
outline-color: rgb(0 130 54);
}import SwiftUI
extension Color {
static let green700 = Color(red: 0.000, green: 0.510, blue: 0.212)
}import androidx.compose.ui.graphics.Color
val Green700 = Color(0xFF008236)import 'package:flutter/material.dart';
const green700 = Color(0xFF008236);<!-- 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.