HEX in OKLCH: #B45309
Auch bekannt als: Tailwind v3 amber-700
Ergebnis
#B45309 → oklch(0.555 0.146 49.0)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #b45309. 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: 180/255 = 0.70588 → 0.456411 (((x + 0.055) / 1.055)^2.4) G: 83/255 = 0.32549 → 0.086500 (((x + 0.055) / 1.055)^2.4) B: 9/255 = 0.03529 → 0.002732 (÷ 12.92)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.234676 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.155889 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.066392
3. cube root
l′ = ∛0.234676 = 0.616817 m′ = ∛0.155889 = 0.538194 s′ = ∛0.066392 = 0.404922
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.55528 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.09546 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.10981
5. Oklab → OKLCH
C = √(a² + b²) = 0.14551 H = atan2(b, a) = 48.998° L = 0.55528
6. OKLCH
oklch(0.55528 0.14551 48.998) rounded: oklch(0.555 0.146 49.0)
Alle Formate
- HEX
- #b45309
- RGB
- rgb(180 83 9)
- RGB (legacy)
- rgb(180, 83, 9)
- HSL
- hsl(25.96 90.48% 37.06%) → hsl(26 90% 37%)
- HWB
- hwb(26 4% 29%)
- OKLCH
- oklch(0.555 0.146 49.0) · oklch(55.5% 0.146 49.0)
- OKLab
- oklab(0.555 0.095 0.110)
- Lab (D50)
- lab(47.46 37.77 54.90)
- LCH (D50)
- lch(47.46 66.64 55.47)
- Display P3
- color(display-p3 0.6582 0.3471 0.1360)
- Linear sRGB
- color(srgb-linear 0.4564 0.0865 0.0027)
Gamut: sRGB und Display P3
#B45309 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.149, Display P3 von 0.169; diese Farbe nutzt 98 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #b45309;
color: rgb(180 83 9);
color: hsl(26 90% 37%);
color: oklch(0.555 0.146 49.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.555 0.146 49.0);
}
/* arbitrary values */
class="text-[#b45309] bg-[oklch(0.555_0.146_49.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6582 0.3471 0.1360); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #b45309 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- amber-700#BB4D00
- yellow-700#A65F00
- v3 orange-700#C2410C
- sienna#A0522D
- v3 yellow-700#A16207
- orange-700#CA3500
- chocolate#D2691E
- amber-800#973C00
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #C86526 · oklch(0.615 0.146 49.0) · ΔL +0.06
- #A04100 · oklch(0.495 0.146 49.0) · ΔL −0.06