HEX to HSL: #F4F4F0

Also known as: Tailwind olive-100

Result

#F4F4F0 → hsl(60 15% 95%)

Values are shown at full precision, so converting back gives exactly #f4f4f0. 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.9569
    G = 0.9569
    B = 0.9412
  2. 2. max, min, Δ

    max = 0.9569
    min = 0.9412
    Δ = max − min = 0.0157
  3. 3. L

    L = (max + min) / 2 = 0.9490 = 94.90%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.1538 = 15.38%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.9569 − 0.9412) / 0.0157) mod 6) = 60.00°
  6. 6. HSL

    hsl(60.00 15.38% 94.90%)

All formats

HEX
#f4f4f0
RGB
rgb(244 244 240)
RGB (legacy)
rgb(244, 244, 240)
HSL
hsl(60.00 15.38% 94.90%) → hsl(60 15% 95%)
HWB
hwb(60 94% 4%)
OKLCH
oklch(0.966 0.005 106.5) · oklch(96.6% 0.005 106.5)
OKLab
oklab(0.966 -0.002 0.005)
Lab (D50)
lab(96.11 -0.52 1.93)
LCH (D50)
lch(96.11 2.00 105.12)
Display P3
color(display-p3 0.9569 0.9569 0.9426)
Linear sRGB
color(srgb-linear 0.9047 0.9047 0.8714)

Gamut: sRGB and Display P3

#F4F4F0 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.136 and Display P3 reaches 0.147; this color uses 4% of the sRGB chroma available.

CSS snippets

.element {
  color: #f4f4f0;
  color: rgb(244 244 240);
  color: hsl(60 15% 95%);
  color: oklch(0.966 0.005 106.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.966 0.005 106.5);
}
/* arbitrary values */
class="text-[#f4f4f0] bg-[oklch(0.966_0.005_106.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9569 0.9569 0.9426); }
}

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

  • #FFFFFB · oklch(1.000 0.005 106.5) · ΔL +0.06
  • #E0E0DC · oklch(0.906 0.005 106.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?