Skip to content

Tailwind CSS v4 default palette

Tailwind green-50: #F0FDF4

In Tailwind CSS v4, green-50 is defined as --color-green-50: oklch(98.2% 0.018 155.826), which is #F0FDF4 in hex and rgb(240, 253, 244): an off-white with a green tint. In Tailwind v3, green-50 was #F0FDF4.

green-50#F0FDF4

In OKLCH, green-50 has a lightness of 98.2%, chroma 0.018 and hue 155.8°.

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

In v3, green-50 was #F0FDF4. The v4 value is ΔE OK 0.0 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-50

Color codes for green-50
Tailwind v4 token--color-green-50
OKLCH (source value)oklch(98.2% 0.018 155.826)
HEX#F0FDF4
RGBrgb(240, 253, 244)
HSLhsl(138, 76%, 97%)
HWBhwb(138 94% 1%)
CMYK (naive, no ICC profile)cmyk(5%, 0%, 4%, 1%)
Decimal15,793,652
Tailwind v3 hex#F0FDF4
Utility classesbg-green-50, text-green-50, border-green-50

Tailwind green scale

Contrast and accessibility

On green-50, black text has a contrast ratio of 20.06:1 and passes AAA at any text size; white text reaches 1.04: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-5020.06:1PassPassPassPass102.8
White text on green-501.04:1FailFailFailFail0.0
Green-50 text on white1.04:1FailFailFailFail0.0
Green-50 text on black20.06:1PassPassPassPass−104.4

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #f1fdf5
  2. 15%
    #f2fdf6
  3. 25%
    #f4fef7
  4. 35%
    #f5fef8
  5. 45%
    #f7fef9
  6. 55%
    #f8fefa
  7. 65%
    #fafefb
  8. 75%
    #fbfffc
  9. 85%
    #fdfffd
  10. 95%
    #fefffe

Shades (mixed with black)

  1. 5%
    #e4f0e8
  2. 15%
    #ccd7cf
  3. 25%
    #b4beb7
  4. 35%
    #9ca49f
  5. 45%
    #848b86
  6. 55%
    #6c726e
  7. 65%
    #545955
  8. 75%
    #3c3f3d
  9. 85%
    #242625
  10. 95%
    #0c0d0c

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, green-50's complementary color is #FFF5FE (close to ghostwhite), its analogous colors are #F6FCEF and #ECFDFB, and its triadic partners are #F5F8FF and #FFF5F1. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#fff5fe
Analogous−30°, +30°#f6fcef#ecfdfb
Triadic+120°, +240°#f5f8ff#fff5f1
Split-complementary+150°, +210°#fcf6ff#fff4f7

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-50 is close to neutral: its OKLCH chroma is only 0.018, so its temperature comes from context. The faint 138° hue gives it a slightly cool cast.

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
honeydew#f0fff00.9
mintcream#f5fffa1.1
azure#f0ffff1.4

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
emerald-50#ecfdf50.5
teal-50#f0fdfa0.8
cyan-50#ecfeff1.4

Code snippets

Tailwind CSS
<div class="bg-green-50 text-black">...</div>
<p class="text-green-50 border-green-50">...</p>
CSS
.element {
  color: var(--color-green-50);
  background-color: oklch(98.2% 0.018 155.826);
  border-color: #f0fdf4;
  outline-color: rgb(240 253 244);
}
SwiftUI
import SwiftUI

extension Color {
  static let green50 = Color(red: 0.941, green: 0.992, blue: 0.957)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const green50 = Color(0xFFF0FDF4);
Android XML
<!-- res/values/colors.xml -->
<color name="green_50">#F0FDF4</color>

Frequently asked questions

What is the hex code for Tailwind green-50?
In Tailwind CSS v4, green-50 is oklch(98.2% 0.018 155.826), which converts to #F0FDF4 (rgb(240, 253, 244)) in sRGB. In Tailwind v3 the same name was #F0FDF4.
What is the difference between green-50 in Tailwind v3 and v4?
v3 used the hex #F0FDF4; v4 redefined the palette in OKLCH as oklch(98.2% 0.018 155.826). In v3, green-50 was #F0FDF4. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
How do I use green-50 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-green-50). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on green-50?
White text on green-50 has a contrast ratio of 1.04:1, which fails AA even for large text under WCAG 2.2. Black text reaches 20.06:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 102.8 for black.
Which CSS named color is closest to green-50?
The closest is honeydew (#F0FFF0) at ΔE OK 0.9, followed by mintcream and azure.

Last reviewed by Arielton Oberek.