Tailwind CSS v3 color

Tailwind lime-100 #ECFCCB

Tailwind CSS v3's lime-100 is #ECFCCB. It is a pale muted yellow in the green family. In OKLCH it sits at lightness 0.967, chroma 0.066 and hue 122.3°. The nearest CSS named color is lightgoldenrodyellow (#FAFAD2), ΔE2000 5.3 away.

Relative luminance
0.9177
OKLCH L · C · h
0.967 · 0.066 · 122.3
Best text
Black 19.35:1
Hue family
Green

#ECFCCB color codes

HEX
#ECFCCB
RGB
rgb(236, 252, 203)
HSL
hsl(80, 89%, 89%)
OKLCH
oklch(0.967 0.066 122.3)
OKLab
oklab(0.967 -0.035 0.056)
CIELAB (D65)
L* 96.72, a* -13.44, b* 21.76
XYZ (D65)
X 80.18, Y 91.77, Z 69.98
CMYK (naive)
cmyk(6%, 0%, 19%, 1%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #ECFCCB accessible?

Black text on it reaches 19.35:1, passing AAA. White text fails at 1.08:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    19.35:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +100
  • White text on it

    1.08:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0

    Text is here, unreadable at 1.08:1

  • As text on black

    19.35:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −101
  • As text on white

    1.08:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0

    Text is here, unreadable at 1.08:1

Nearest versions that pass 4.5:1

  • For text on white

    #6E7C4F 4.50:1

    Darkening its OKLCH lightness from 0.97 to 0.56 reaches 4.50:1 on white, keeping the hue.

  • For text on black

    #ECFCCB 19.35:1

    It already reaches 19.35:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #ECFCCB live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #ECFCCB

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #ECFCCB sits at step 50.

  1. 50This color#ECFCCB
    White
    1.08
    Black
    19.35
  2. 100#E4F2CA
    White
    1.17
    Black
    17.85
  3. 200#D0DEB4
    White
    1.41
    Black
    14.78
  4. 300#B6C599
    White
    1.83
    Black
    11.43
  5. 400#9AA87B
    White
    2.54
    Black
    8.26
  6. 500#7F8D60
    White
    3.57
    Black
    5.88
  7. 600#68754A
    White
    4.96
    Black
    4.23
  8. 700#525E34
    White
    6.97
    Black
    3.00
  9. 800#3A451F
    White
    10.23
    Black
    2.05
  10. 900#242D0A
    White
    14.43
    Black
    1.45
  11. 950#121900
    White
    18.02
    Black
    1.16

Under each step, white and black text on it; a bold figure passes 4.5:1.

Tailwind CSS v3 lime scale

The real Tailwind palette, for comparison with the computed ramp above.

  1. 50#F7FEE7
    White
    1.03
    Black
    20.28
  2. 100This color#ECFCCB
    White
    1.08
    Black
    19.35
  3. 200#D9F99D
    White
    1.16
    Black
    17.98
  4. 300#BEF264
    White
    1.30
    Black
    16.07
  5. 400#A3E635
    White
    1.50
    Black
    13.92
  6. 500#84CC16
    White
    1.97
    Black
    10.62
  7. 600#65A30D
    White
    3.08
    Black
    6.79
  8. 700#4D7C0F
    White
    4.99
    Black
    4.20
  9. 800#3F6212
    White
    7.07
    Black
    2.96
  10. 900#365314
    White
    8.73
    Black
    2.40
  11. 950#1A2E05
    White
    14.61
    Black
    1.43

Gamut

How vivid #ECFCCB can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.094; #ECFCCB uses 70% of it. Display P3, which many recent phones and laptops show, reaches 0.101 there: 8% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.066
sRGB edge
0.094
Display P3 edge
0.101
Rec. 2020 edge
0.120
Dominant wavelength
565 nm
Excitation purity
19%
Chromaticity
x 0.3314, y 0.3793
  • This color#ECFCCB
  • Most vivid in sRGB#E9FFB8
  • Most vivid in Display P3oklch(0.967 0.101 122.3)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #ecfccb;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.9271 1 0.7341); }
}

Mixing

Mixing #ECFCCB

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#F6FEE5
  • OKLab50%#F5FEE5
  • OKLCH50%#F5FEE5

Black #000000

  • sRGB50%#767E66
  • OKLab50%#5B624D
  • OKLCH50%#5B624D

Its complement #F6F1FF

  • sRGB50%#F1F7E5
  • OKLab50%#F1F7E6
  • OKLCH50%#E0F9FF
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #ecfccb, white);
color: color-mix(in oklch, #ecfccb 50%, white);

In use

#ECFCCB in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:119.35:1 Passes
  • Link and body-size textText, 4.5:11.08:1 Fails
  • Large headingLarge text, 3:11.08:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.08:1 Fails

For text on this page, the nearest shade that passes is #6E7C4F 4.50:1

Dark page

  • Button labelText, 4.5:119.35:1 Passes
  • Link and body-size textText, 4.5:117.26:1 Passes
  • Large headingLarge text, 3:117.26:1 Passes
  • Icons, borders and focus ringsNon-text, 3:117.26:1 Passes

Color vision

How #ECFCCB looks with color blindness

Achromatopsia changes it most, ΔE2000 17.6; protanopia changes it least, 7.8.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #FFF6C8 ΔE2000 7.8

    Noticeable

    Reads as pale muted amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #FFF6CD ΔE2000 8.2

    Noticeable

    Reads as pale muted amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #F0F7EE ΔE2000 12.8

    Distinct

    Reads as off-white

  • Achromatopsia

    No cone color vision; lightness only

    #F6F6F6 ΔE2000 17.6

    Distinct

    Reads as off-white

Pairing check

Checked against its complement, #F6F1FF. Their lightness contrast is only 1.02:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#ECFCCB · #F6F1FF28.3Stays distinct
Protanopia#FFF6C8 · #EFF3FF22.8Stays distinct
Deuteranopia#FFF6CD · #F0F3FF21.2Stays distinct
Tritanopia#F0F7EE · #F5F3F57.8Harder to tell apart
Achromatopsia#F6F6F6 · #F3F3F30.6Easily confused

Harmony

Color harmonies for #ECFCCB

Its complement is #F6F1FF, an off-white.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#ECFCCB
  • Complement#F6F1FF

Complementary

Open in Harmony Studio
  • −30°#FFF4D1
  • Base#ECFCCB
  • +30°#DBFFE3
  • Base#ECFCCB
  • +120°#EBF6FF
  • +240°#FFF0F3
  • Base#ECFCCB
  • +150°#F0F4FF
  • +210°#FFEEFC

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-lime-100: #ecfccb;
}

Tailwind config

// tailwind.config.js — already built in as lime-100;
// pin the v3 value explicitly like this:
module.exports = {
  theme: {
    extend: {
      colors: {
        lime: { 100: '#ecfccb' },
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  /* v4 has its own lime-100; this pins the v3 value. */
  --color-lime-100: oklch(0.967 0.066 122.3);
}

Design token (W3C DTCG)

{
  "color": {
    "lime-100": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.9255, 0.9882, 0.7961],
        "hex": "#ecfccb"
      },
      "$description": "Tailwind CSS v3 lime-100"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let lime100 = Color(.sRGB, red: 0.925, green: 0.988, blue: 0.796, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Lime100 = Color(0xFFECFCCB)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #ECFCCB in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.