HEX in OKLCH: #894B00
Auch bekannt als: Tailwind yellow-800
Ergebnis
#894B00 → oklch(0.478 0.112 60.4)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #894b00. 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: 137/255 = 0.53725 → 0.250158 (((x + 0.055) / 1.055)^2.4) G: 75/255 = 0.29412 → 0.070360 (((x + 0.055) / 1.055)^2.4) B: 0/255 = 0.00000 → 0.000000 (÷ 12.92)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.140857 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.100904 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.041911
3. cube root
l′ = ∛0.140857 = 0.520307 m′ = ∛0.100904 = 0.465553 s′ = ∛0.041911 = 0.347358
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.47756 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.05505 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.09700
5. Oklab → OKLCH
C = √(a² + b²) = 0.11153 H = atan2(b, a) = 60.426° L = 0.47756
6. OKLCH
oklch(0.47756 0.11153 60.426) rounded: oklch(0.478 0.112 60.4)
Alle Formate
- HEX
- #894b00
- RGB
- rgb(137 75 0)
- RGB (legacy)
- rgb(137, 75, 0)
- HSL
- hsl(32.85 100.00% 26.86%) → hsl(33 100% 27%)
- HWB
- hwb(33 0% 46%)
- OKLCH
- oklch(0.478 0.112 60.4) · oklch(47.8% 0.112 60.4)
- OKLab
- oklab(0.478 0.055 0.097)
- Lab (D50)
- lab(38.92 23.68 48.27)
- LCH (D50)
- lch(38.92 53.76 63.87)
- Display P3
- color(display-p3 0.5045 0.3062 0.0957)
- Linear sRGB
- color(srgb-linear 0.2502 0.0704 0.0000)
Gamut: sRGB und Display P3
#894B00 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.112, Display P3 von 0.127; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #894b00;
color: rgb(137 75 0);
color: hsl(33 100% 27%);
color: oklch(0.478 0.112 60.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.478 0.112 60.4);
}
/* arbitrary values */
class="text-[#894b00] bg-[oklch(0.478_0.112_60.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5045 0.3062 0.0957); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #894b00 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 yellow-800#854D0E
- saddlebrown#8B4513
- v3 amber-800#92400E
- amber-800#973C00
- sienna#A0522D
- yellow-900#733E0A
- v3 orange-800#9A3412
- v3 yellow-900#713F12
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #9C5C1D · oklch(0.538 0.112 60.4) · ΔL +0.06
- #763A00 · oklch(0.418 0.112 60.4) · ΔL −0.06