HEX in HSL: #FAFAD2
Auch bekannt als: CSS lightgoldenrodyellow
Ergebnis
#FAFAD2 → hsl(60 80% 90%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #fafad2. 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. RGB ÷ 255
R = 0.9804 G = 0.9804 B = 0.8235
2. max, min, Δ
max = 0.9804 min = 0.8235 Δ = max − min = 0.1569
3. L
L = (max + min) / 2 = 0.9020 = 90.20%
4. S
S = Δ / (1 − |2L − 1|) = 0.8000 = 80.00%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.9804 − 0.8235) / 0.1569) mod 6) = 60.00°
6. HSL
hsl(60.00 80.00% 90.20%)
Alle Formate
- HEX
- #fafad2
- RGB
- rgb(250 250 210)
- RGB (legacy)
- rgb(250, 250, 210)
- HSL
- hsl(60.00 80.00% 90.20%) → hsl(60 80% 90%)
- HWB
- hwb(60 82% 2%)
- OKLCH
- oklch(0.975 0.052 107.3) · oklch(97.5% 0.052 107.3)
- OKLab
- oklab(0.975 -0.015 0.049)
- Lab (D50)
- lab(97.51 -4.80 19.29)
- LCH (D50)
- lch(97.51 19.88 103.98)
- Display P3
- color(display-p3 0.9804 0.9804 0.8392)
- Linear sRGB
- color(srgb-linear 0.9560 0.9560 0.6445)
Gamut: sRGB und Display P3
#FAFAD2 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.117, Display P3 von 0.122; diese Farbe nutzt 44 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #fafad2;
color: rgb(250 250 210);
color: hsl(60 80% 90%);
color: oklch(0.975 0.052 107.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.975 0.052 107.3);
}
/* arbitrary values */
class="text-[#fafad2] bg-[oklch(0.975_0.052_107.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9804 0.9804 0.8392); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fafad2 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- lemonchiffon#FFFACD
- cornsilk#FFF8DC
- v3 yellow-100#FEF9C3
- v3 amber-100#FEF3C7
- amber-100#FEF3C6
- yellow-100#FEF9C2
- lightyellow#FFFFE0
- beige#F5F5DC
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #FFFFDA · oklch(1.000 0.052 107.3) · ΔL +0.06
- #E6E6BF · oklch(0.915 0.052 107.3) · ΔL −0.06