HEX in OKLCH: #FF8904
Auch bekannt als: Tailwind orange-400
Ergebnis
#FF8904 → oklch(0.746 0.180 56.7)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #ff8904. 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: 255/255 = 1.00000 → 1.000000 (((x + 0.055) / 1.055)^2.4) G: 137/255 = 0.53725 → 0.250158 (((x + 0.055) / 1.055)^2.4) B: 4/255 = 0.01569 → 0.001214 (÷ 12.92)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.546452 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.382317 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.159542
3. cube root
l′ = ∛0.546452 = 0.817556 m′ = ∛0.382317 = 0.725784 s′ = ∛0.159542 = 0.542365
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.74585 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.09888 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.15070
5. Oklab → OKLCH
C = √(a² + b²) = 0.18024 H = atan2(b, a) = 56.732° L = 0.74585
6. OKLCH
oklch(0.74585 0.18024 56.732) rounded: oklch(0.746 0.180 56.7)
Alle Formate
- HEX
- #ff8904
- RGB
- rgb(255 137 4)
- RGB (legacy)
- rgb(255, 137, 4)
- HSL
- hsl(31.79 100.00% 50.78%) → hsl(32 100% 51%)
- HWB
- hwb(32 2% 0%)
- OKLCH
- oklch(0.746 0.180 56.7) · oklch(74.6% 0.180 56.7)
- OKLab
- oklab(0.746 0.099 0.151)
- Lab (D50)
- lab(69.60 41.25 75.23)
- LCH (D50)
- lch(69.60 85.80 61.27)
- Display P3
- color(display-p3 0.9390 0.5611 0.2100)
- Linear sRGB
- color(srgb-linear 1.0000 0.2502 0.0012)
Gamut: sRGB und Display P3
#FF8904 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.180, Display P3 von 0.207; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #ff8904;
color: rgb(255 137 4);
color: hsl(32 100% 51%);
color: oklch(0.746 0.180 56.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.746 0.180 56.7);
}
/* arbitrary values */
class="text-[#ff8904] bg-[oklch(0.746_0.180_56.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9390 0.5611 0.2100); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ff8904 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- darkorange#FF8C00
- v3 orange-400#FB923C
- amber-500#FE9A00
- v3 amber-500#F59E0B
- v3 orange-500#F97316
- coral#FF7F50
- orange#FFA500
- orange-500#FF6900
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #FF9C30 · oklch(0.806 0.180 56.7) · ΔL +0.06
- #EA7600 · oklch(0.686 0.180 56.7) · ΔL −0.06