HEX in HSL: #52525C
Auch bekannt als: Tailwind zinc-600
Ergebnis
#52525C → hsl(240 6% 34%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #52525c. 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.3216 G = 0.3216 B = 0.3608
2. max, min, Δ
max = 0.3608 min = 0.3216 Δ = max − min = 0.0392
3. L
L = (max + min) / 2 = 0.3412 = 34.12%
4. S
S = Δ / (1 − |2L − 1|) = 0.0575 = 5.75%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.3216 − 0.3216) / 0.0392 + 4) = 240.00°
6. HSL
hsl(240.00 5.75% 34.12%)
Alle Formate
- HEX
- #52525c
- RGB
- rgb(82 82 92)
- RGB (legacy)
- rgb(82, 82, 92)
- HSL
- hsl(240.00 5.75% 34.12%) → hsl(240 6% 34%)
- HWB
- hwb(240 32% 64%)
- OKLCH
- oklch(0.442 0.016 285.7) · oklch(44.2% 0.016 285.7)
- OKLab
- oklab(0.442 0.004 -0.016)
- Lab (D50)
- lab(35.15 1.69 -5.85)
- LCH (D50)
- lch(35.15 6.09 286.11)
- Display P3
- color(display-p3 0.3216 0.3216 0.3575)
- Linear sRGB
- color(srgb-linear 0.0844 0.0844 0.1070)
Gamut: sRGB und Display P3
#52525C 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.257, Display P3 von 0.262; diese Farbe nutzt 6 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #52525c;
color: rgb(82 82 92);
color: hsl(240 6% 34%);
color: oklch(0.442 0.016 285.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.442 0.016 285.7);
}
/* arbitrary values */
class="text-[#52525c] bg-[oklch(0.442_0.016_285.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3216 0.3216 0.3575); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #52525c calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 zinc-600#52525B
- v3 gray-600#4B5563
- neutral-600#525252
- gray-600#4A5565
- mauve-600#594C5B
- mist-600#4B585B
- v3 slate-600#475569
- v3 stone-600#57534E
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #63636D · oklch(0.502 0.016 285.7) · ΔL +0.06
- #42424B · oklch(0.382 0.016 285.7) · ΔL −0.06