HSL in HEX: #71717A
Auch bekannt als: Tailwind v3 zinc-500
Ergebnis
hsl(240.00 3.83% 46.08%) → #71717A
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #71717a. 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 = 240.00°, S = 3.83%, L = 46.08%
2. C
C = (1 − |2L − 1|) × S = 0.03530
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00000 (H / 60° = 4.0000, sector 4)
4. m
m = L − C / 2 = 0.44315
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.00000, 0.03530) R = round((0.00000 + 0.44315) × 255) = 113 G = round((0.00000 + 0.44315) × 255) = 113 B = round((0.03530 + 0.44315) × 255) = 122
6. RGB → HEX
#71717A
Alle Formate
- HEX
- #71717a
- RGB
- rgb(113 113 122)
- RGB (legacy)
- rgb(113, 113, 122)
- HSL
- hsl(240.00 3.83% 46.08%) → hsl(240 4% 46%)
- HWB
- hwb(240 44% 52%)
- OKLCH
- oklch(0.552 0.014 285.9) · oklch(55.2% 0.014 285.9)
- OKLab
- oklab(0.552 0.004 -0.013)
- Lab (D50)
- lab(47.87 1.42 -4.99)
- LCH (D50)
- lch(47.87 5.19 285.84)
- Display P3
- color(display-p3 0.4431 0.4431 0.4754)
- Linear sRGB
- color(srgb-linear 0.1651 0.1651 0.1946)
Gamut: sRGB und Display P3
#71717A 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.281; diese Farbe nutzt 5 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #71717a;
color: rgb(113 113 122);
color: hsl(240 4% 46%);
color: oklch(0.552 0.014 285.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.552 0.014 285.9);
}
/* arbitrary values */
class="text-[#71717a] bg-[oklch(0.552_0.014_285.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4431 0.4431 0.4754); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #71717a calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- zinc-500#71717B
- v3 gray-500#6B7280
- neutral-500#737373
- gray-500#6A7282
- mist-500#67787C
- v3 stone-500#78716C
- stone-500#79716B
- mauve-500#79697B
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #83838C · oklch(0.612 0.014 285.9) · ΔL +0.06
- #606069 · oklch(0.492 0.014 285.9) · ΔL −0.06