Skip to content

Tailwind CSS v4 default palette

Tailwind green-950: #032E15

In Tailwind CSS v4, green-950 is defined as --color-green-950: oklch(26.6% 0.065 152.934), which is #032E15 in hex and rgb(3, 46, 21): a very dark, muted green. In Tailwind v3, green-950 was #052E16.

green-950#032E15

In OKLCH, green-950 has a lightness of 26.6%, chroma 0.065 and hue 152.9°.

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

In v3, green-950 was #052E16. The v4 value is ΔE OK 0.2 away, below the point where most people can tell them apart.

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-950

Color codes for green-950
Tailwind v4 token--color-green-950
OKLCH (source value)oklch(26.6% 0.065 152.934)
HEX#032E15
RGBrgb(3, 46, 21)
HSLhsl(145, 88%, 10%)
HWBhwb(145 1% 82%)
CMYK (naive, no ICC profile)cmyk(93%, 0%, 54%, 82%)
Decimal208,405
Tailwind v3 hex#052E16
Utility classesbg-green-950, text-green-950, border-green-950

Tailwind green scale

Contrast and accessibility

On green-950, white text has a contrast ratio of 14.94:1 and passes AAA at any text size; black text reaches 1.40: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-9501.40:1FailFailFailFail0.0
White text on green-95014.94:1PassPassPassPass−104.4
Green-950 text on white14.94:1PassPassPassPass101.5
Green-950 text on black1.40:1FailFailFailFail0.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #103821
  2. 15%
    #294d38
  3. 25%
    #426250
  4. 35%
    #5b7767
  5. 45%
    #748c7e
  6. 55%
    #8ea196
  7. 65%
    #a7b6ad
  8. 75%
    #c0cbc5
  9. 85%
    #d9e0dc
  10. 95%
    #f2f5f3

Shades (mixed with black)

  1. 5%
    #032c14
  2. 15%
    #032712
  3. 25%
    #022310
  4. 35%
    #021e0e
  5. 45%
    #02190c
  6. 55%
    #011509
  7. 65%
    #011007
  8. 75%
    #010c05
  9. 85%
    #000703
  10. 95%
    #000201

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, green-950's complementary color is #371833 (close to midnightblue), its analogous colors are #202A00 and #002F28, and its triadic partners are #1B2245 and #3F170F. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#371833
Analogous−30°, +30°#202a00#002f28
Triadic+120°, +240°#1b2245#3f170f
Split-complementary+150°, +210°#2c1c3f#3e1622

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-950 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
darkslategray#2f4f4f14.4
midnightblue#19197018.6
darkgreen#00640019.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
emerald-950#002c222.4
lime-950#192e032.7
teal-950#022f2e4.3

Code snippets

Tailwind CSS
<div class="bg-green-950 text-white">...</div>
<p class="text-green-950 border-green-950">...</p>
CSS
.element {
  color: var(--color-green-950);
  background-color: oklch(26.6% 0.065 152.934);
  border-color: #032e15;
  outline-color: rgb(3 46 21);
}
SwiftUI
import SwiftUI

extension Color {
  static let green950 = Color(red: 0.012, green: 0.180, blue: 0.082)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const green950 = Color(0xFF032E15);
Android XML
<!-- res/values/colors.xml -->
<color name="green_950">#032E15</color>

Frequently asked questions

What is the hex code for Tailwind green-950?
In Tailwind CSS v4, green-950 is oklch(26.6% 0.065 152.934), which converts to #032E15 (rgb(3, 46, 21)) in sRGB. In Tailwind v3 the same name was #052E16.
What is the difference between green-950 in Tailwind v3 and v4?
v3 used the hex #052E16; v4 redefined the palette in OKLCH as oklch(26.6% 0.065 152.934). In v3, green-950 was #052E16. The v4 value is ΔE OK 0.2 away, below the point where most people can tell them apart.
How do I use green-950 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-green-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on green-950?
White text on green-950 has a contrast ratio of 14.94:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.40:1 and fails AA even for large text. In APCA terms that is Lc −104.4 for white and Lc 0.0 for black.
Which CSS named color is closest to green-950?
The closest is darkslategray (#2F4F4F) at ΔE OK 14.4, followed by midnightblue and darkgreen.

Last reviewed by Arielton Oberek.