Skip to content

Tailwind CSS v4 default palette

Tailwind lime-300: #BBF451

In Tailwind CSS v4, lime-300 is defined as --color-lime-300: oklch(89.7% 0.196 126.665), which is #BBF451 in hex and rgb(187, 244, 81): a very light, vivid yellow-green. In Tailwind v3, lime-300 was #BEF264.

lime-300#BBF451

In OKLCH, lime-300 has a lightness of 89.7%, chroma 0.196 and hue 126.7°.

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

In v3, lime-300 was #BEF264. The v4 value is ΔE OK 1.7 away, below the point where most people can tell them apart; v4 is more saturated.

Tailwind lime is a yellow-green between yellow and green, bright and acidic in its mid shades.

Color codes for lime-300

Color codes for lime-300
Tailwind v4 token--color-lime-300
OKLCH (source value)oklch(89.7% 0.196 126.665)
HEX#BBF451
RGBrgb(187, 244, 81)
HSLhsl(81, 88%, 64%)
HWBhwb(81 32% 4%)
CMYK (naive, no ICC profile)cmyk(23%, 0%, 67%, 4%)
Decimal12,317,777
Tailwind v3 hex#BEF264
Utility classesbg-lime-300, text-lime-300, border-lime-300

Tailwind lime scale

Contrast and accessibility

On lime-300, black text has a contrast ratio of 16.17:1 and passes AAA at any text size; white text reaches 1.29: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 lime-30016.17:1PassPassPassPass89.0
White text on lime-3001.29:1FailFailFailFail−16.8
Lime-300 text on white1.29:1FailFailFailFail14.6
Lime-300 text on black16.17:1PassPassPassPass−89.2

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #bef55a
  2. 15%
    #c5f66b
  3. 25%
    #ccf77d
  4. 35%
    #d3f88e
  5. 45%
    #daf99f
  6. 55%
    #e0fab1
  7. 65%
    #e7fbc2
  8. 75%
    #eefcd4
  9. 85%
    #f5fde5
  10. 95%
    #fcfef6

Shades (mixed with black)

  1. 5%
    #b2e84d
  2. 15%
    #9fcf45
  3. 25%
    #8cb73d
  4. 35%
    #7a9f35
  5. 45%
    #67862d
  6. 55%
    #546e24
  7. 65%
    #41551c
  8. 75%
    #2f3d14
  9. 85%
    #1c250c
  10. 95%
    #090c04

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, lime-300's complementary color is #ECCEFF (close to lavender), its analogous colors are #FFDB00 and #45FFA6, and its triadic partners are #B5E3FF and #FFC8D4. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#ecceff
Analogous−30°, +30°#ffdb00#45ffa6
Triadic+120°, +240°#b5e3ff#ffc8d4
Split-complementary+150°, +210°#d0daff#ffc1f8

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 lime-300 sits on the boundary: its hue of 81° on the HSL wheel is a yellow-green, which reads warm next to blues and cool next to reds and oranges.

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
greenyellow#adff2f4.3
palegreen#98fb986.4
lightgreen#90ee907.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
lime-400#9ae6007.0
lime-200#d8f9998.1
yellow-300#ffdf209.5

Code snippets

Tailwind CSS
<div class="bg-lime-300 text-black">...</div>
<p class="text-lime-300 border-lime-300">...</p>
CSS
.element {
  color: var(--color-lime-300);
  background-color: oklch(89.7% 0.196 126.665);
  border-color: #bbf451;
  outline-color: rgb(187 244 81);
}
SwiftUI
import SwiftUI

extension Color {
  static let lime300 = Color(red: 0.733, green: 0.957, blue: 0.318)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const lime300 = Color(0xFFBBF451);
Android XML
<!-- res/values/colors.xml -->
<color name="lime_300">#BBF451</color>

Frequently asked questions

What is the hex code for Tailwind lime-300?
In Tailwind CSS v4, lime-300 is oklch(89.7% 0.196 126.665), which converts to #BBF451 (rgb(187, 244, 81)) in sRGB. In Tailwind v3 the same name was #BEF264.
What is the difference between lime-300 in Tailwind v3 and v4?
v3 used the hex #BEF264; v4 redefined the palette in OKLCH as oklch(89.7% 0.196 126.665). In v3, lime-300 was #BEF264. 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 lime-300 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-lime-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on lime-300?
White text on lime-300 has a contrast ratio of 1.29:1, which fails AA even for large text under WCAG 2.2. Black text reaches 16.17:1 and passes both AA and AAA. In APCA terms that is Lc −16.8 for white and Lc 89.0 for black.
Which CSS named color is closest to lime-300?
The closest is greenyellow (#ADFF2F) at ΔE OK 4.3, followed by palegreen and lightgreen.

Last reviewed by Arielton Oberek.