HEX in OKLCH: #EAB308
Auch bekannt als: Tailwind v3 yellow-500
Ergebnis
#EAB308 → oklch(0.795 0.162 86.0)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #eab308. 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: 234/255 = 0.91765 → 0.822786 (((x + 0.055) / 1.055)^2.4) G: 179/255 = 0.70196 → 0.450786 (((x + 0.055) / 1.055)^2.4) B: 8/255 = 0.03137 → 0.002428 (÷ 12.92)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.581066 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.481462 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.201179
3. cube root
l′ = ∛0.581066 = 0.834466 m′ = ∛0.481462 = 0.783767 s′ = ∛0.201179 = 0.585950
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.79524 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.01115 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.16128
5. Oklab → OKLCH
C = √(a² + b²) = 0.16167 H = atan2(b, a) = 86.047° L = 0.79524
6. OKLCH
oklch(0.79524 0.16167 86.047) rounded: oklch(0.795 0.162 86.0)
Alle Formate
- HEX
- #eab308
- RGB
- rgb(234 179 8)
- RGB (legacy)
- rgb(234, 179, 8)
- HSL
- hsl(45.40 93.39% 47.45%) → hsl(45 93% 47%)
- HWB
- hwb(45 3% 8%)
- OKLCH
- oklch(0.795 0.162 86.0) · oklch(79.5% 0.162 86.0)
- OKLab
- oklab(0.795 0.011 0.161)
- Lab (D50)
- lab(76.46 11.75 77.37)
- LCH (D50)
- lch(76.46 78.26 81.37)
- Display P3
- color(display-p3 0.8843 0.7105 0.2450)
- Linear sRGB
- color(srgb-linear 0.8228 0.4508 0.0024)
Gamut: sRGB und Display P3
#EAB308 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.163, Display P3 von 0.188; diese Farbe nutzt 99 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #eab308;
color: rgb(234 179 8);
color: hsl(45 93% 47%);
color: oklch(0.795 0.162 86.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.795 0.162 86.0);
}
/* arbitrary values */
class="text-[#eab308] bg-[oklch(0.795_0.162_86.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8843 0.7105 0.2450); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #eab308 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- yellow-500#F0B100
- amber-400#FFB900
- v3 amber-400#FBBF24
- orange#FFA500
- goldenrod#DAA520
- v3 amber-500#F59E0B
- yellow-400#FDC700
- amber-500#FE9A00
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #FEC734 · oklch(0.855 0.162 86.0) · ΔL +0.06
- #D6A000 · oklch(0.735 0.162 86.0) · ΔL −0.06