HEX in HSL: #7E2A0C
Auch bekannt als: Tailwind orange-900
Ergebnis
#7E2A0C → hsl(16 83% 27%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #7e2a0c. 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. RGB ÷ 255
R = 0.4941 G = 0.1647 B = 0.0471
2. max, min, Δ
max = 0.4941 min = 0.0471 Δ = max − min = 0.4471
3. L
L = (max + min) / 2 = 0.2706 = 27.06%
4. S
S = Δ / (1 − |2L − 1|) = 0.8261 = 82.61%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.1647 − 0.0471) / 0.4471) mod 6) = 15.79°
6. HSL
hsl(15.79 82.61% 27.06%)
Alle Formate
- HEX
- #7e2a0c
- RGB
- rgb(126 42 12)
- RGB (legacy)
- rgb(126, 42, 12)
- HSL
- hsl(15.79 82.61% 27.06%) → hsl(16 83% 27%)
- HWB
- hwb(16 5% 51%)
- OKLCH
- oklch(0.407 0.123 38.0) · oklch(40.7% 0.123 38.0)
- OKLab
- oklab(0.407 0.097 0.076)
- Lab (D50)
- lab(30.22 36.03 37.43)
- LCH (D50)
- lch(30.22 51.96 46.09)
- Display P3
- color(display-p3 0.4562 0.1874 0.0903)
- Linear sRGB
- color(srgb-linear 0.2086 0.0232 0.0037)
Gamut: sRGB und Display P3
#7E2A0C 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.133, Display P3 von 0.150; diese Farbe nutzt 92 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #7e2a0c;
color: rgb(126 42 12);
color: hsl(16 83% 27%);
color: oklch(0.407 0.123 38.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.407 0.123 38.0);
}
/* arbitrary values */
class="text-[#7e2a0c] bg-[oklch(0.407_0.123_38.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4562 0.1874 0.0903); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #7e2a0c calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 orange-900#7C2D12
- amber-900#7B3306
- v3 amber-900#78350F
- v3 red-900#7F1D1D
- red-900#82181A
- darkred#8B0000
- yellow-900#733E0A
- maroon#800000
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #913C20 · oklch(0.467 0.123 38.0) · ΔL +0.06
- #6B1700 · oklch(0.347 0.123 38.0) · ΔL −0.06