HEX in HSL: #881337
Auch bekannt als: Tailwind v3 rose-900
Ergebnis
#881337 → hsl(342 75% 30%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #881337. 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.5333 G = 0.0745 B = 0.2157
2. max, min, Δ
max = 0.5333 min = 0.0745 Δ = max − min = 0.4588
3. L
L = (max + min) / 2 = 0.3039 = 30.39%
4. S
S = Δ / (1 − |2L − 1|) = 0.7548 = 75.48%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.0745 − 0.2157) / 0.4588) mod 6) = 341.54°
6. HSL
hsl(341.54 75.48% 30.39%)
Alle Formate
- HEX
- #881337
- RGB
- rgb(136 19 55)
- RGB (legacy)
- rgb(136, 19, 55)
- HSL
- hsl(341.54 75.48% 30.39%) → hsl(342 75% 30%)
- HWB
- hwb(342 7% 47%)
- OKLCH
- oklch(0.410 0.150 10.3) · oklch(41.0% 0.150 10.3)
- OKLab
- oklab(0.410 0.148 0.027)
- Lab (D50)
- lab(29.85 48.71 11.83)
- LCH (D50)
- lch(29.85 50.12 13.65)
- Display P3
- color(display-p3 0.4886 0.1256 0.2194)
- Linear sRGB
- color(srgb-linear 0.2462 0.0065 0.0382)
Gamut: sRGB und Display P3
#881337 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.164, Display P3 von 0.185; diese Farbe nutzt 92 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #881337;
color: rgb(136 19 55);
color: hsl(342 75% 30%);
color: oklch(0.410 0.150 10.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.410 0.150 10.3);
}
/* arbitrary values */
class="text-[#881337] bg-[oklch(0.410_0.150_10.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4886 0.1256 0.2194); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #881337 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- rose-900#8B0836
- v3 pink-900#831843
- pink-900#861043
- red-900#82181A
- v3 red-900#7F1D1D
- v3 rose-800#9F1239
- darkred#8B0000
- v3 pink-800#9D174D
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #9C2A47 · oklch(0.470 0.150 10.3) · ΔL +0.06
- #740028 · oklch(0.350 0.150 10.3) · ΔL −0.06