HSL in HEX: #F9FAFB

Auch bekannt als: Tailwind gray-50, Tailwind v3 gray-50

Ergebnis

hsl(210.00 20.00% 98.04%) → #F9FAFB

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #f9fafb. Die gerundete Form fügst du üblicherweise in CSS ein.

Rechenweg Schritt für Schritt

Jede Zahl wird aus der Eingabe berechnet, nichts ist nachgeschlagen.

  1. 1. input

    H = 210.00°, S = 20.00%, L = 98.04%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.00392, 0.00784)
    R = round((0.00000 + 0.97648) × 255) = 249
    G = round((0.00392 + 0.97648) × 255) = 250
    B = round((0.00784 + 0.97648) × 255) = 251
  6. 6. RGB → HEX

    #F9FAFB

Alle Formate

HEX
#f9fafb
RGB
rgb(249 250 251)
RGB (legacy)
rgb(249, 250, 251)
HSL
hsl(210.00 20.00% 98.04%) → hsl(210 20% 98%)
HWB
hwb(210 98% 2%)
OKLCH
oklch(0.985 0.002 247.8) · oklch(98.5% 0.002 247.8)
OKLab
oklab(0.985 -0.001 -0.002)
Lab (D50)
lab(98.22 -0.21 -0.60)
LCH (D50)
lch(98.22 0.64 250.72)
Display P3
color(display-p3 0.9772 0.9803 0.9839)
Linear sRGB
color(srgb-linear 0.9473 0.9560 0.9647)

Gamut: sRGB und Display P3

#F9FAFB ist eine Hex-Farbe und liegt damit in sRGB und folglich in Display P3. Bei dieser Helligkeit und diesem Farbton erreicht sRGB eine Chroma von 0.008, Display P3 von 0.008; diese Farbe nutzt 22 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #f9fafb;
  color: rgb(249 250 251);
  color: hsl(210 20% 98%);
  color: oklch(0.985 0.002 247.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.985 0.002 247.8);
}
/* arbitrary values */
class="text-[#f9fafb] bg-[oklch(0.985_0.002_247.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9772 0.9803 0.9839); }
}

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

Ähnliche Farben

Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).

Heller und dunkler, gleicher Farbton und gleiche Chroma

  • #FEFFFF · oklch(1.000 0.002 247.8) · ΔL +0.06
  • #E5E6E7 · oklch(0.925 0.002 247.8) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →