HSL to HEX: #ECFCCA

Also known as: Tailwind lime-100

Result

hsl(79.20 89.29% 89.02%) → #ECFCCA

Values are shown at full precision, so converting back gives exactly #ecfcca. The rounded form is what you normally paste into CSS.

Step-by-step math

Every number below is computed from the input, nothing is looked up.

  1. 1. input

    H = 79.20°, S = 89.29%, L = 89.02%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.19608
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.13333   (H / 60° = 1.3200, sector 1)
  4. 4. m

    m = L − C / 2 = 0.79216
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.13333, 0.19608, 0.00000)
    R = round((0.13333 + 0.79216) × 255) = 236
    G = round((0.19608 + 0.79216) × 255) = 252
    B = round((0.00000 + 0.79216) × 255) = 202
  6. 6. RGB → HEX

    #ECFCCA

All formats

HEX
#ecfcca
RGB
rgb(236 252 202)
RGB (legacy)
rgb(236, 252, 202)
HSL
hsl(79.20 89.29% 89.02%) → hsl(79 89% 89%)
HWB
hwb(79 79% 1%)
OKLCH
oklch(0.967 0.067 122.1) · oklch(96.7% 0.067 122.1)
OKLab
oklab(0.967 -0.036 0.057)
Lab (D50)
lab(96.83 -11.64 22.20)
LCH (D50)
lch(96.83 25.06 117.68)
Display P3
color(display-p3 0.9370 0.9862 0.8110)
Linear sRGB
color(srgb-linear 0.8388 0.9734 0.5906)

Gamut: sRGB and Display P3

#ECFCCA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.095 and Display P3 reaches 0.102; this color uses 71% of the sRGB chroma available.

CSS snippets

.element {
  color: #ecfcca;
  color: rgb(236 252 202);
  color: hsl(79 89% 89%);
  color: oklch(0.967 0.067 122.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.967 0.067 122.1);
}
/* arbitrary values */
class="text-[#ecfcca] bg-[oklch(0.967_0.067_122.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9370 0.9862 0.8110); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ecfcca calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #F7FFD5 · oklch(1.000 0.067 122.1) · ΔL +0.06
  • #D8E8B7 · oklch(0.907 0.067 122.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?