HSL in HEX: #64748B
Auch bekannt als: Tailwind v3 slate-500
Ergebnis
hsl(215.38 16.32% 46.86%) → #64748B
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #64748b. 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 = 215.38°, S = 16.32%, L = 46.86%
2. C
C = (1 − |2L − 1|) × S = 0.15295
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.06276 (H / 60° = 3.5897, sector 3)
4. m
m = L − C / 2 = 0.39212
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.06276, 0.15295) R = round((0.00000 + 0.39212) × 255) = 100 G = round((0.06276 + 0.39212) × 255) = 116 B = round((0.15295 + 0.39212) × 255) = 139
6. RGB → HEX
#64748B
Alle Formate
- HEX
- #64748b
- RGB
- rgb(100 116 139)
- RGB (legacy)
- rgb(100, 116, 139)
- HSL
- hsl(215.38 16.32% 46.86%) → hsl(215 16% 47%)
- HWB
- hwb(215 39% 45%)
- OKLCH
- oklch(0.554 0.041 257.4) · oklch(55.4% 0.041 257.4)
- OKLab
- oklab(0.554 -0.009 -0.040)
- Lab (D50)
- lab(48.16 -1.93 -14.72)
- LCH (D50)
- lch(48.16 14.85 262.54)
- Display P3
- color(display-p3 0.4042 0.4530 0.5370)
- Linear sRGB
- color(srgb-linear 0.1274 0.1746 0.2582)
Gamut: sRGB und Display P3
#64748B 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.200, Display P3 von 0.254; diese Farbe nutzt 20 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #64748b;
color: rgb(100 116 139);
color: hsl(215 16% 47%);
color: oklch(0.554 0.041 257.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.554 0.041 257.4);
}
/* arbitrary values */
class="text-[#64748b] bg-[oklch(0.554_0.041_257.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4042 0.4530 0.5370); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #64748b calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- slate-500#62748E
- gray-500#6A7282
- v3 gray-500#6B7280
- zinc-500#71717B
- v3 zinc-500#71717A
- mist-500#67787C
- slategray#708090
- neutral-500#737373
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #75869D · oklch(0.614 0.041 257.4) · ΔL +0.06
- #536379 · oklch(0.494 0.041 257.4) · ΔL −0.06