HEX in HSL: #500724
Auch bekannt als: Tailwind v3 pink-950
Ergebnis
#500724 → hsl(336 84% 17%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #500724. 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.3137 G = 0.0275 B = 0.1412
2. max, min, Δ
max = 0.3137 min = 0.0275 Δ = max − min = 0.2863
3. L
L = (max + min) / 2 = 0.1706 = 17.06%
4. S
S = Δ / (1 − |2L − 1|) = 0.8391 = 83.91%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.0275 − 0.1412) / 0.2863) mod 6) = 336.16°
6. HSL
hsl(336.16 83.91% 17.06%)
Alle Formate
- HEX
- #500724
- RGB
- rgb(80 7 36)
- RGB (legacy)
- rgb(80, 7, 36)
- HSL
- hsl(336.16 83.91% 17.06%) → hsl(336 84% 17%)
- HWB
- hwb(336 3% 69%)
- OKLCH
- oklch(0.284 0.105 3.9) · oklch(28.4% 0.105 3.9)
- OKLab
- oklab(0.284 0.105 0.007)
- Lab (D50)
- lab(15.72 33.92 3.39)
- LCH (D50)
- lch(15.72 34.09 5.70)
- Display P3
- color(display-p3 0.2857 0.0582 0.1409)
- Linear sRGB
- color(srgb-linear 0.0802 0.0021 0.0176)
Gamut: sRGB und Display P3
#500724 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.114, Display P3 von 0.129; diese Farbe nutzt 92 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #500724;
color: rgb(80 7 36);
color: hsl(336 84% 17%);
color: oklch(0.284 0.105 3.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.284 0.105 3.9);
}
/* arbitrary values */
class="text-[#500724] bg-[oklch(0.284_0.105_3.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2857 0.0582 0.1409); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #500724 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- pink-950#510424
- v3 rose-950#4C0519
- rose-950#4D0218
- red-950#460809
- v3 red-950#450A0A
- orange-950#441306
- v3 orange-950#431407
- amber-950#461901
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #621B33 · oklch(0.344 0.105 3.9) · ΔL +0.06
- #3E0016 · oklch(0.224 0.105 3.9) · ΔL −0.06