HSL in HEX: #18181B
Auch bekannt als: Tailwind zinc-900, Tailwind v3 zinc-900
Ergebnis
hsl(240.00 5.88% 10.00%) → #18181B
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #18181b. 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 = 5.88%, L = 10.00%
2. C
C = (1 − |2L − 1|) × S = 0.01176
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.09412
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.00000, 0.01176) R = round((0.00000 + 0.09412) × 255) = 24 G = round((0.00000 + 0.09412) × 255) = 24 B = round((0.01176 + 0.09412) × 255) = 27
6. RGB → HEX
#18181B
Alle Formate
- HEX
- #18181b
- RGB
- rgb(24 24 27)
- RGB (legacy)
- rgb(24, 24, 27)
- HSL
- hsl(240.00 5.88% 10.00%) → hsl(240 6% 10%)
- HWB
- hwb(240 9% 89%)
- OKLCH
- oklch(0.210 0.006 285.9) · oklch(21.0% 0.006 285.9)
- OKLab
- oklab(0.210 0.002 -0.006)
- Lab (D50)
- lab(8.35 0.60 -2.12)
- LCH (D50)
- lch(8.35 2.20 285.90)
- Display P3
- color(display-p3 0.0941 0.0941 0.1049)
- Linear sRGB
- color(srgb-linear 0.0091 0.0091 0.0110)
Gamut: sRGB und Display P3
#18181B 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.122, Display P3 von 0.125; diese Farbe nutzt 5 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #18181b;
color: rgb(24 24 27);
color: hsl(240 6% 10%);
color: oklch(0.210 0.006 285.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.210 0.006 285.9);
}
/* arbitrary values */
class="text-[#18181b] bg-[oklch(0.210_0.006_285.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0941 0.0941 0.1049); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #18181b calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- neutral-900#171717
- mist-900#161B1D
- stone-900#1C1917
- taupe-900#1D1816
- mauve-900#1D161E
- olive-900#1D1D16
- v3 gray-900#111827
- gray-900#101828
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #262629 · oklch(0.270 0.006 285.9) · ΔL +0.06
- #0B0B0E · oklch(0.150 0.006 285.9) · ΔL −0.06