HEX to HSL: #FDF2F8

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

Result

#FDF2F8 → hsl(327 73% 97%)

Values are shown at full precision, so converting back gives exactly #fdf2f8. 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.9922
    G = 0.9490
    B = 0.9725
  2. 2. max, min, Δ

    max = 0.9922
    min = 0.9490
    Δ = max − min = 0.0431
  3. 3. L

    L = (max + min) / 2 = 0.9706 = 97.06%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.7333 = 73.33%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.9490 − 0.9725) / 0.0431) mod 6) = 327.27°
  6. 6. HSL

    hsl(327.27 73.33% 97.06%)

All formats

HEX
#fdf2f8
RGB
rgb(253 242 248)
RGB (legacy)
rgb(253, 242, 248)
HSL
hsl(327.27 73.33% 97.06%) → hsl(327 73% 97%)
HWB
hwb(327 95% 1%)
OKLCH
oklch(0.971 0.014 343.2) · oklch(97.1% 0.014 343.2)
OKLab
oklab(0.971 0.014 -0.004)
Lab (D50)
lab(96.49 4.59 -1.51)
LCH (D50)
lch(96.49 4.83 341.78)
Display P3
color(display-p3 0.9847 0.9505 0.9712)
Linear sRGB
color(srgb-linear 0.9823 0.8879 0.9387)

Gamut: sRGB and Display P3

#FDF2F8 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.018 and Display P3 reaches 0.024; this color uses 79% of the sRGB chroma available.

CSS snippets

.element {
  color: #fdf2f8;
  color: rgb(253 242 248);
  color: hsl(327 73% 97%);
  color: oklch(0.971 0.014 343.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.971 0.014 343.2);
}
/* arbitrary values */
class="text-[#fdf2f8] bg-[oklch(0.971_0.014_343.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9847 0.9505 0.9712); }
}

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

  • #FFFCFF · oklch(1.000 0.014 343.2) · ΔL +0.06
  • #E9DEE4 · oklch(0.911 0.014 343.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?