Tailwind CSS v3 color

Tailwind lime-50 #F7FEE7

Tailwind CSS v3's lime-50 is #F7FEE7. It is a pale grayish yellow in the neutral family. In OKLCH it sits at lightness 0.986, chroma 0.031 and hue 120.8°. The nearest CSS named color is beige (#F5F5DC), ΔE2000 3.2 away.

Relative luminance
0.9643
OKLCH L · C · h
0.986 · 0.031 · 120.8
Best text
Black 20.28:1
Hue family
Neutral

#F7FEE7 color codes

HEX
#F7FEE7
RGB
rgb(247, 254, 231)
HSL
hsl(78, 92%, 95%)
OKLCH
oklch(0.986 0.031 120.8)
OKLab
oklab(0.986 -0.016 0.027)
CIELAB (D65)
L* 98.60, a* -6.24, b* 10.21
XYZ (D65)
X 88.22, Y 96.43, Z 89.55
CMYK (naive)
cmyk(3%, 0%, 9%, 0%)

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 #F7FEE7 accessible?

Black text on it reaches 20.28:1, passing AAA. White text fails at 1.03: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

    20.28:1

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

    1.03:1

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

    Text is here, unreadable at 1.03:1

  • As text on black

    20.28:1

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

    1.03:1

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

    Text is here, unreadable at 1.03:1

Nearest versions that pass 4.5:1

  • For text on white

    #737965 4.51:1

    Darkening its OKLCH lightness from 0.99 to 0.57 reaches 4.51:1 on white, keeping the hue.

  • For text on black

    #F7FEE7 20.28:1

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

Checking another pair? Use the Contrast Checker.

Studio

Adjust #F7FEE7 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 #F7FEE7

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

  1. 50This color#F7FEE7
    White
    1.03
    Black
    20.28
  2. 100#E8EEDB
    White
    1.18
    Black
    17.68
  3. 200#D5DBC7
    White
    1.42
    Black
    14.78
  4. 300#BBC1AC
    White
    1.85
    Black
    11.33
  5. 400#9EA590
    White
    2.54
    Black
    8.23
  6. 500#838975
    White
    3.62
    Black
    5.80
  7. 600#6C725E
    White
    4.99
    Black
    4.20
  8. 700#555B48
    White
    7.05
    Black
    2.97
  9. 800#3D4231
    White
    10.38
    Black
    2.02
  10. 900#272B1C
    White
    14.49
    Black
    1.44
  11. 950#14180B
    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. 50This color#F7FEE7
    White
    1.03
    Black
    20.28
  2. 100#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 #F7FEE7 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.040; #F7FEE7 uses 78% of it. Display P3, which many recent phones and laptops show, reaches 0.042 there: 7% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.031
sRGB edge
0.040
Display P3 edge
0.042
Rec. 2020 edge
0.050
Dominant wavelength
566 nm
Excitation purity
9%
Chromaticity
x 0.3217, y 0.3517
  • This color#F7FEE7
  • Most vivid in sRGB#F6FFE1
  • Most vivid in Display P3oklch(0.986 0.042 120.8)

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

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

Mixing

Mixing #F7FEE7

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%#FBFFF3
  • OKLab50%#FBFFF3
  • OKLCH50%#FBFFF3

Black #000000

  • sRGB50%#7C7F74
  • OKLab50%#606359
  • OKLCH50%#606359

Its complement #FBF9FF

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

In use

#F7FEE7 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:120.28:1 Passes
  • Link and body-size textText, 4.5:11.03:1 Fails
  • Large headingLarge text, 3:11.03:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.03:1 Fails

For text on this page, the nearest shade that passes is #737965 4.51:1

Dark page

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

Color vision

How #F7FEE7 looks with color blindness

Achromatopsia changes it most, ΔE2000 10.6; protanopia changes it least, 4.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

    #FFFBE6 ΔE2000 4.8

    Close match

    Reads as pale grayish amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #FFFBE8 ΔE2000 5.1

    Noticeable

    Reads as pale grayish amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #F9FBF7 ΔE2000 8.2

    Noticeable

    Reads as white

  • Achromatopsia

    No cone color vision; lightness only

    #FBFBFB ΔE2000 10.6

    Distinct

    Reads as white

Pairing check

A near-neutral has no complementary hue to pair with, so tell it apart from neighboring grays by lightness contrast alone.

Harmony

Color harmonies for #F7FEE7

Its complement is #FBF9FF, a near-white.

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

Open the Harmony Studio
  • Base#F7FEE7
  • Complement#FBF9FF

Complementary

Open in Harmony Studio
  • −30°#FFFAEC
  • Base#F7FEE7
  • +30°#F0FFF3
  • Base#F7FEE7
  • +120°#F6FBFF
  • +240°#FFF8FA
  • Base#F7FEE7
  • +150°#F8FAFF
  • +210°#FFF8FE

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-50: #f7fee7;
}

Tailwind config

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

Tailwind v4 theme

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

@theme {
  /* v4 has its own lime-50; this pins the v3 value. */
  --color-lime-50: oklch(0.986 0.031 120.8);
}

Design token (W3C DTCG)

{
  "color": {
    "lime-50": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.9686, 0.9961, 0.9059],
        "hex": "#f7fee7"
      },
      "$description": "Tailwind CSS v3 lime-50"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let lime50 = Color(.sRGB, red: 0.969, green: 0.996, blue: 0.906, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Lime50 = Color(0xFFF7FEE7)
}

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 #F7FEE7 in the tools

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