HSL in HEX: #FEF9C3
Auch bekannt als: Tailwind v3 yellow-100
Ergebnis
hsl(54.92 96.72% 88.04%) → #FEF9C3
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #fef9c3. 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. input
H = 54.92°, S = 96.72%, L = 88.04%
2. C
C = (1 − |2L − 1|) × S = 0.23135
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.21177 (H / 60° = 0.9153, sector 0)
4. m
m = L − C / 2 = 0.76472
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.23135, 0.21177, 0.00000) R = round((0.23135 + 0.76472) × 255) = 254 G = round((0.21177 + 0.76472) × 255) = 249 B = round((0.00000 + 0.76472) × 255) = 195
6. RGB → HEX
#FEF9C3
Alle Formate
- HEX
- #fef9c3
- RGB
- rgb(254 249 195)
- RGB (legacy)
- rgb(254, 249, 195)
- HSL
- hsl(54.92 96.72% 88.04%) → hsl(55 97% 88%)
- HWB
- hwb(55 76% 0%)
- OKLCH
- oklch(0.973 0.069 103.2) · oklch(97.3% 0.069 103.2)
- OKLab
- oklab(0.973 -0.016 0.068)
- Lab (D50)
- lab(97.34 -4.44 26.68)
- LCH (D50)
- lch(97.34 27.04 99.44)
- Display P3
- color(display-p3 0.9926 0.9771 0.7872)
- Linear sRGB
- color(srgb-linear 0.9911 0.9473 0.5457)
Gamut: sRGB und Display P3
#FEF9C3 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.077, Display P3 von 0.087; diese Farbe nutzt 90 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #fef9c3;
color: rgb(254 249 195);
color: hsl(55 97% 88%);
color: oklch(0.973 0.069 103.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.973 0.069 103.2);
}
/* arbitrary values */
class="text-[#fef9c3] bg-[oklch(0.973_0.069_103.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9926 0.9771 0.7872); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fef9c3 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- yellow-100#FEF9C2
- lemonchiffon#FFFACD
- amber-100#FEF3C6
- v3 amber-100#FEF3C7
- lightgoldenrodyellow#FAFAD2
- lime-100#ECFCCA
- v3 lime-100#ECFCCB
- cornsilk#FFF8DC
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #FFFFCC · oklch(1.000 0.069 103.2) · ΔL +0.06
- #EAE5B0 · oklch(0.913 0.069 103.2) · ΔL −0.06