HEX in HSL: #9F9FA9
Auch bekannt als: Tailwind zinc-400
Ergebnis
#9F9FA9 → hsl(240 5% 64%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #9f9fa9. 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.6235 G = 0.6235 B = 0.6627
2. max, min, Δ
max = 0.6627 min = 0.6235 Δ = max − min = 0.0392
3. L
L = (max + min) / 2 = 0.6431 = 64.31%
4. S
S = Δ / (1 − |2L − 1|) = 0.0549 = 5.49%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.6235 − 0.6235) / 0.0392 + 4) = 240.00°
6. HSL
hsl(240.00 5.49% 64.31%)
Alle Formate
- HEX
- #9f9fa9
- RGB
- rgb(159 159 169)
- RGB (legacy)
- rgb(159, 159, 169)
- HSL
- hsl(240.00 5.49% 64.31%) → hsl(240 5% 64%)
- HWB
- hwb(240 62% 34%)
- OKLCH
- oklch(0.706 0.014 286.0) · oklch(70.6% 0.014 286.0)
- OKLab
- oklab(0.706 0.004 -0.014)
- Lab (D50)
- lab(65.73 1.47 -5.21)
- LCH (D50)
- lch(65.73 5.42 285.73)
- Display P3
- color(display-p3 0.6235 0.6235 0.6594)
- Linear sRGB
- color(srgb-linear 0.3467 0.3467 0.3968)
Gamut: sRGB und Display P3
#9F9FA9 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.162, Display P3 von 0.176; diese Farbe nutzt 9 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #9f9fa9;
color: rgb(159 159 169);
color: hsl(240 5% 64%);
color: oklch(0.706 0.014 286.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.706 0.014 286.0);
}
/* arbitrary values */
class="text-[#9f9fa9] bg-[oklch(0.706_0.014_286.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6235 0.6235 0.6594); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #9f9fa9 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 zinc-400#A1A1AA
- gray-400#99A1AF
- v3 gray-400#9CA3AF
- mauve-400#A89EA9
- neutral-400#A1A1A1
- v3 neutral-400#A3A3A3
- stone-400#A6A09B
- v3 stone-400#A8A29E
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #B2B2BC · oklch(0.766 0.014 286.0) · ΔL +0.06
- #8D8D97 · oklch(0.646 0.014 286.0) · ΔL −0.06