HEX in OKLCH: #FDE047
Auch bekannt als: Tailwind v3 yellow-300
Ergebnis
#FDE047 → oklch(0.905 0.166 98.1)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #fde047. 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. sRGB → linear
R: 253/255 = 0.99216 → 0.982251 (((x + 0.055) / 1.055)^2.4) G: 224/255 = 0.87843 → 0.745404 (((x + 0.055) / 1.055)^2.4) B: 71/255 = 0.27843 → 0.063010 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.807931 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.722306 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.336425
3. cube root
l′ = ∛0.807931 = 0.931375 m′ = ∛0.722306 = 0.897237 s′ = ∛0.336425 = 0.695498
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.90524 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.02338 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.16403
5. Oklab → OKLCH
C = √(a² + b²) = 0.16568 H = atan2(b, a) = 98.111° L = 0.90524
6. OKLCH
oklch(0.90524 0.16568 98.111) rounded: oklch(0.905 0.166 98.1)
Alle Formate
- HEX
- #fde047
- RGB
- rgb(253 224 71)
- RGB (legacy)
- rgb(253, 224, 71)
- HSL
- hsl(50.44 97.85% 63.53%) → hsl(50 98% 64%)
- HWB
- hwb(50 28% 1%)
- OKLCH
- oklch(0.905 0.166 98.1) · oklch(90.5% 0.166 98.1)
- OKLab
- oklab(0.905 -0.023 0.164)
- Lab (D50)
- lab(89.71 -1.10 73.95)
- LCH (D50)
- lch(89.71 73.96 90.85)
- Display P3
- color(display-p3 0.9732 0.8825 0.3931)
- Linear sRGB
- color(srgb-linear 0.9823 0.7454 0.0630)
Gamut: sRGB und Display P3
#FDE047 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.176, Display P3 von 0.210; diese Farbe nutzt 94 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #fde047;
color: rgb(253 224 71);
color: hsl(50 98% 64%);
color: oklch(0.905 0.166 98.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.905 0.166 98.1);
}
/* arbitrary values */
class="text-[#fde047] bg-[oklch(0.905_0.166_98.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9732 0.8825 0.3931); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fde047 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- yellow-300#FFDF20
- gold#FFD700
- amber-300#FFD230
- v3 amber-300#FCD34D
- v3 yellow-400#FACC15
- amber-200#FEE685
- v3 amber-200#FDE68A
- yellow-200#FFF085
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #FFF45F · oklch(0.965 0.166 98.1) · ΔL +0.06
- #E9CC2A · oklch(0.845 0.166 98.1) · ΔL −0.06