HSL in HEX: #171717
Auch bekannt als: Tailwind neutral-900, Tailwind v3 neutral-900
Ergebnis
hsl(0.00 0.00% 9.02%) → #171717
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #171717. 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 = 0.00°, S = 0.00%, L = 9.02%
2. C
C = (1 − |2L − 1|) × S = 0.00000
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00000 (H / 60° = 0.0000, sector 0)
4. m
m = L − C / 2 = 0.09020
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.00000, 0.00000) R = round((0.00000 + 0.09020) × 255) = 23 G = round((0.00000 + 0.09020) × 255) = 23 B = round((0.00000 + 0.09020) × 255) = 23
6. RGB → HEX
#171717
Alle Formate
- HEX
- #171717
- RGB
- rgb(23 23 23)
- RGB (legacy)
- rgb(23, 23, 23)
- HSL
- hsl(0.00 0.00% 9.02%) → hsl(0 0% 9%)
- HWB
- hwb(0 9% 91%)
- OKLCH
- oklch(0.205 0.000 0.0) · oklch(20.5% 0.000 0.0)
- OKLab
- oklab(0.205 0.000 0.000)
- Lab (D50)
- lab(7.74 0.00 0.00)
- LCH (D50)
- lch(7.74 0.00 0.00)
- Display P3
- color(display-p3 0.0902 0.0902 0.0902)
- Linear sRGB
- color(srgb-linear 0.0086 0.0086 0.0086)
Gamut: sRGB und Display P3
#171717 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.083, Display P3 von 0.093; diese Farbe nutzt 0 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #171717;
color: rgb(23 23 23);
color: hsl(0 0% 9%);
color: oklch(0.205 0.000 0.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.205 0.000 0.0);
}
/* arbitrary values */
class="text-[#171717] bg-[oklch(0.205_0.000_0.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0902 0.0902 0.0902); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #171717 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- zinc-900#18181B
- stone-900#1C1917
- taupe-900#1D1816
- mist-900#161B1D
- mauve-900#1D161E
- olive-900#1D1D16
- v3 gray-900#111827
- gray-900#101828
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #252525 · oklch(0.265 0.000 0.0) · ΔL +0.06
- #0A0A0A · oklch(0.145 0.000 0.0) · ΔL −0.06