HEX in HSL: #111827
Auch bekannt als: Tailwind v3 gray-900
Ergebnis
#111827 → hsl(221 39% 11%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #111827. 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.0667 G = 0.0941 B = 0.1529
2. max, min, Δ
max = 0.1529 min = 0.0667 Δ = max − min = 0.0863
3. L
L = (max + min) / 2 = 0.1098 = 10.98%
4. S
S = Δ / (1 − |2L − 1|) = 0.3929 = 39.29%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0667 − 0.0941) / 0.0863 + 4) = 220.91°
6. HSL
hsl(220.91 39.29% 10.98%)
Alle Formate
- HEX
- #111827
- RGB
- rgb(17 24 39)
- RGB (legacy)
- rgb(17, 24, 39)
- HSL
- hsl(220.91 39.29% 10.98%) → hsl(221 39% 11%)
- HWB
- hwb(221 7% 85%)
- OKLCH
- oklch(0.210 0.032 264.7) · oklch(21.0% 0.032 264.7)
- OKLab
- oklab(0.210 -0.003 -0.032)
- Lab (D50)
- lab(8.15 0.64 -11.47)
- LCH (D50)
- lch(8.15 11.49 273.21)
- Display P3
- color(display-p3 0.0722 0.0933 0.1484)
- Linear sRGB
- color(srgb-linear 0.0056 0.0091 0.0203)
Gamut: sRGB und Display P3
#111827 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.145, Display P3 von 0.145; diese Farbe nutzt 22 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #111827;
color: rgb(17 24 39);
color: hsl(221 39% 11%);
color: oklch(0.210 0.032 264.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.210 0.032 264.7);
}
/* arbitrary values */
class="text-[#111827] bg-[oklch(0.210_0.032_264.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0722 0.0933 0.1484); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #111827 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- gray-900#101828
- v3 slate-900#0F172A
- slate-900#0F172B
- zinc-900#18181B
- mauve-900#1D161E
- mist-900#161B1D
- neutral-900#171717
- stone-900#1C1917
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #1F2636 · oklch(0.270 0.032 264.7) · ΔL +0.06
- #050B19 · oklch(0.150 0.032 264.7) · ΔL −0.06