HEX in OKLCH: #F8FAFC

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

Ergebnis

#F8FAFC → oklch(0.984 0.003 247.9)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #f8fafc. 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. sRGB → linear

    R: 248/255 = 0.97255 → 0.938686  (((x + 0.055) / 1.055)^2.4)
    G: 250/255 = 0.98039 → 0.955973  (((x + 0.055) / 1.055)^2.4)
    B: 252/255 = 0.98824 → 0.973445  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.949746
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.954186
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.965454
  3. 3. cube root

    l′ = ∛0.949746 = 0.982960
    m′ = ∛0.954186 = 0.984489
    s′ = ∛0.965454 = 0.988349
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.98415
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.00129
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.00316
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.00341
    H = atan2(b, a) = 247.858°
    L = 0.98415
  6. 6. OKLCH

    oklch(0.98415 0.00341 247.858)
    rounded: oklch(0.984 0.003 247.9)

Alle Formate

HEX
#f8fafc
RGB
rgb(248 250 252)
RGB (legacy)
rgb(248, 250, 252)
HSL
hsl(210.00 40.00% 98.04%) → hsl(210 40% 98%)
HWB
hwb(210 97% 1%)
OKLCH
oklch(0.984 0.003 247.9) · oklch(98.4% 0.003 247.9)
OKLab
oklab(0.984 -0.001 -0.003)
Lab (D50)
lab(98.16 -0.42 -1.21)
LCH (D50)
lch(98.16 1.28 250.79)
Display P3
color(display-p3 0.9739 0.9801 0.9874)
Linear sRGB
color(srgb-linear 0.9387 0.9560 0.9734)

Gamut: sRGB und Display P3

#F8FAFC 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.009; diese Farbe nutzt 43 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #f8fafc;
  color: rgb(248 250 252);
  color: hsl(210 40% 98%);
  color: oklch(0.984 0.003 247.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.984 0.003 247.9);
}
/* arbitrary values */
class="text-[#f8fafc] bg-[oklch(0.984_0.003_247.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9739 0.9801 0.9874); }
}

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

  • #FDFFFF · oklch(1.000 0.003 247.9) · ΔL +0.06
  • #E4E6E8 · oklch(0.924 0.003 247.9) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →