HEX naar HSL: #F9FBFB
Ook bekend als: Tailwind mist-50
Resultaat
#F9FBFB → hsl(180 20% 98%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #f9fbfb. De afgeronde vorm plak je gewoonlijk in CSS.
Stap-voor-stap berekening
Elk getal wordt uit de invoer berekend, er wordt niets opgezocht.
1. RGB ÷ 255
R = 0.9765 G = 0.9843 B = 0.9843
2. max, min, Δ
max = 0.9843 min = 0.9765 Δ = max − min = 0.0078
3. L
L = (max + min) / 2 = 0.9804 = 98.04%
4. S
S = Δ / (1 − |2L − 1|) = 0.2000 = 20.00%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.9843 − 0.9765) / 0.0078 + 2) = 180.00°
6. HSL
hsl(180.00 20.00% 98.04%)
Alle formaten
- HEX
- #f9fbfb
- RGB
- rgb(249 251 251)
- RGB (legacy)
- rgb(249, 251, 251)
- HSL
- hsl(180.00 20.00% 98.04%) → hsl(180 20% 98%)
- HWB
- hwb(180 98% 2%)
- OKLCH
- oklch(0.987 0.002 197.1) · oklch(98.7% 0.002 197.1)
- OKLab
- oklab(0.987 -0.002 -0.001)
- Lab (D50)
- lab(98.46 -0.68 -0.24)
- LCH (D50)
- lch(98.46 0.73 199.65)
- Display P3
- color(display-p3 0.9779 0.9841 0.9842)
- Linear sRGB
- color(srgb-linear 0.9473 0.9647 0.9647)
Gamut: sRGB en Display P3
#F9FBFB is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.019 en Display P3 van 0.020; deze kleur gebruikt 11% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #f9fbfb;
color: rgb(249 251 251);
color: hsl(180 20% 98%);
color: oklch(0.987 0.002 197.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.987 0.002 197.1);
}
/* arbitrary values */
class="text-[#f9fbfb] bg-[oklch(0.987_0.002_197.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9779 0.9841 0.9842); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f9fbfb calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- gray-50#F9FAFB
- mauve-50#FAFAFA
- stone-50#FAFAF9
- olive-50#FBFBF9
- slate-50#F8FAFC
- taupe-50#FBFAF9
- snow#FFFAFA
- ghostwhite#F8F8FF
Lichter en donkerder, dezelfde tint en chroma
- #FEFFFF · oklch(1.000 0.002 197.1) · ΔL +0.06
- #E5E7E7 · oklch(0.927 0.002 197.1) · ΔL −0.06