HSL in HEX: #FEFCE8
Auch bekannt als: Tailwind yellow-50, Tailwind v3 yellow-50
Ergebnis
hsl(54.55 91.67% 95.29%) → #FEFCE8
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #fefce8. 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.55°, S = 91.67%, L = 95.29%
2. C
C = (1 − |2L − 1|) × S = 0.08635
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.07851 (H / 60° = 0.9092, sector 0)
4. m
m = L − C / 2 = 0.90972
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.08635, 0.07851, 0.00000) R = round((0.08635 + 0.90972) × 255) = 254 G = round((0.07851 + 0.90972) × 255) = 252 B = round((0.00000 + 0.90972) × 255) = 232
6. RGB → HEX
#FEFCE8
Alle Formate
- HEX
- #fefce8
- RGB
- rgb(254 252 232)
- RGB (legacy)
- rgb(254, 252, 232)
- HSL
- hsl(54.55 91.67% 95.29%) → hsl(55 92% 95%)
- HWB
- hwb(55 91% 0%)
- OKLCH
- oklch(0.987 0.026 102.2) · oklch(98.7% 0.026 102.2)
- OKLab
- oklab(0.987 -0.006 0.026)
- Lab (D50)
- lab(98.72 -1.81 9.87)
- LCH (D50)
- lch(98.72 10.03 100.37)
- Display P3
- color(display-p3 0.9947 0.9885 0.9173)
- Linear sRGB
- color(srgb-linear 0.9911 0.9734 0.8070)
Gamut: sRGB und Display P3
#FEFCE8 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.034, Display P3 von 0.038; diese Farbe nutzt 77 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #fefce8;
color: rgb(254 252 232);
color: hsl(55 92% 95%);
color: oklch(0.987 0.026 102.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.987 0.026 102.2);
}
/* arbitrary values */
class="text-[#fefce8] bg-[oklch(0.987_0.026_102.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9947 0.9885 0.9173); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fefce8 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- amber-50#FFFBEB
- lime-50#F7FEE7
- ivory#FFFFF0
- floralwhite#FFFAF0
- lightyellow#FFFFE0
- cornsilk#FFF8DC
- orange-50#FFF7ED
- oldlace#FDF5E6
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #FFFFEC · oklch(1.000 0.026 102.2) · ΔL +0.06
- #EAE8D4 · oklch(0.927 0.026 102.2) · ΔL −0.06