HEX to HSL: #F7FEE7

Also known as: Tailwind lime-50, Tailwind v3 lime-50

Result

#F7FEE7 → hsl(78 92% 95%)

Values are shown at full precision, so converting back gives exactly #f7fee7. 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. RGB ÷ 255

    R = 0.9686
    G = 0.9961
    B = 0.9059
  2. 2. max, min, Δ

    max = 0.9961
    min = 0.9059
    Δ = max − min = 0.0902
  3. 3. L

    L = (max + min) / 2 = 0.9510 = 95.10%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.9200 = 92.00%
  5. 5. H

    max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.9059 − 0.9686) / 0.0902 + 2) = 78.26°
  6. 6. HSL

    hsl(78.26 92.00% 95.10%)

All formats

HEX
#f7fee7
RGB
rgb(247 254 231)
RGB (legacy)
rgb(247, 254, 231)
HSL
hsl(78.26 92.00% 95.10%) → hsl(78 92% 95%)
HWB
hwb(78 91% 0%)
OKLCH
oklch(0.986 0.031 120.8) · oklch(98.6% 0.031 120.8)
OKLab
oklab(0.986 -0.016 0.027)
Lab (D50)
lab(98.67 -5.32 10.21)
LCH (D50)
lch(98.67 11.51 117.54)
Display P3
color(display-p3 0.9736 0.9952 0.9139)
Linear sRGB
color(srgb-linear 0.9301 0.9911 0.7991)

Gamut: sRGB and Display P3

#F7FEE7 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.040 and Display P3 reaches 0.042; this color uses 78% of the sRGB chroma available.

CSS snippets

.element {
  color: #f7fee7;
  color: rgb(247 254 231);
  color: hsl(78 92% 95%);
  color: oklch(0.986 0.031 120.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.986 0.031 120.8);
}
/* arbitrary values */
class="text-[#f7fee7] bg-[oklch(0.986_0.031_120.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9736 0.9952 0.9139); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f7fee7 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

  • #FCFFEC · oklch(1.000 0.031 120.8) · ΔL +0.06
  • #E3EAD3 · oklch(0.926 0.031 120.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?