HEX in HSL: #71717B
Auch bekannt als: Tailwind zinc-500
Ergebnis
#71717B → hsl(240 4% 46%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #71717b. 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.4431 G = 0.4431 B = 0.4824
2. max, min, Δ
max = 0.4824 min = 0.4431 Δ = max − min = 0.0392
3. L
L = (max + min) / 2 = 0.4627 = 46.27%
4. S
S = Δ / (1 − |2L − 1|) = 0.0424 = 4.24%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.4431 − 0.4431) / 0.0392 + 4) = 240.00°
6. HSL
hsl(240.00 4.24% 46.27%)
Alle Formate
- HEX
- #71717b
- RGB
- rgb(113 113 123)
- RGB (legacy)
- rgb(113, 113, 123)
- HSL
- hsl(240.00 4.24% 46.27%) → hsl(240 4% 46%)
- HWB
- hwb(240 44% 52%)
- OKLCH
- oklch(0.552 0.015 285.9) · oklch(55.2% 0.015 285.9)
- OKLab
- oklab(0.552 0.004 -0.015)
- Lab (D50)
- lab(47.90 1.58 -5.54)
- LCH (D50)
- lch(47.90 5.76 285.90)
- Display P3
- color(display-p3 0.4431 0.4431 0.4790)
- Linear sRGB
- color(srgb-linear 0.1651 0.1651 0.1981)
Gamut: sRGB und Display P3
#71717B 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.261, Display P3 von 0.280; diese Farbe nutzt 6 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #71717b;
color: rgb(113 113 123);
color: hsl(240 4% 46%);
color: oklch(0.552 0.015 285.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.552 0.015 285.9);
}
/* arbitrary values */
class="text-[#71717b] bg-[oklch(0.552_0.015_285.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4431 0.4431 0.4790); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #71717b calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 zinc-500#71717A
- v3 gray-500#6B7280
- gray-500#6A7282
- neutral-500#737373
- mist-500#67787C
- v3 stone-500#78716C
- mauve-500#79697B
- stone-500#79716B
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #83838D · oklch(0.612 0.015 285.9) · ΔL +0.06
- #60606A · oklch(0.492 0.015 285.9) · ΔL −0.06