HSL in HEX: #4C0519
Auch bekannt als: Tailwind v3 rose-950
Ergebnis
hsl(343.10 87.65% 15.88%) → #4C0519
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #4c0519. 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. input
H = 343.10°, S = 87.65%, L = 15.88%
2. C
C = (1 − |2L − 1|) × S = 0.27838
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.07841 (H / 60° = 5.7183, sector 5)
4. m
m = L − C / 2 = 0.01961
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.27838, 0.00000, 0.07841) R = round((0.27838 + 0.01961) × 255) = 76 G = round((0.00000 + 0.01961) × 255) = 5 B = round((0.07841 + 0.01961) × 255) = 25
6. RGB → HEX
#4C0519
Alle Formate
- HEX
- #4c0519
- RGB
- rgb(76 5 25)
- RGB (legacy)
- rgb(76, 5, 25)
- HSL
- hsl(343.10 87.65% 15.88%) → hsl(343 88% 16%)
- HWB
- hwb(343 2% 70%)
- OKLCH
- oklch(0.271 0.101 12.1) · oklch(27.1% 0.101 12.1)
- OKLab
- oklab(0.271 0.099 0.021)
- Lab (D50)
- lab(14.26 32.69 9.36)
- LCH (D50)
- lch(14.26 34.00 15.98)
- Display P3
- color(display-p3 0.2710 0.0492 0.1011)
- Linear sRGB
- color(srgb-linear 0.0723 0.0015 0.0097)
Gamut: sRGB und Display P3
#4C0519 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.108, Display P3 von 0.122; diese Farbe nutzt 93 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #4c0519;
color: rgb(76 5 25);
color: hsl(343 88% 16%);
color: oklch(0.271 0.101 12.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.271 0.101 12.1);
}
/* arbitrary values */
class="text-[#4c0519] bg-[oklch(0.271_0.101_12.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2710 0.0492 0.1011); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4c0519 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- rose-950#4D0218
- v3 pink-950#500724
- pink-950#510424
- 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
- #5E1927 · oklch(0.331 0.101 12.1) · ΔL +0.06
- #3A000B · oklch(0.211 0.101 12.1) · ΔL −0.06