HEX in HSL: #6B7280
Auch bekannt als: Tailwind v3 gray-500
Ergebnis
#6B7280 → hsl(220 9% 46%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #6b7280. 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.4196 G = 0.4471 B = 0.5020
2. max, min, Δ
max = 0.5020 min = 0.4196 Δ = max − min = 0.0824
3. L
L = (max + min) / 2 = 0.4608 = 46.08%
4. S
S = Δ / (1 − |2L − 1|) = 0.0894 = 8.94%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.4196 − 0.4471) / 0.0824 + 4) = 220.00°
6. HSL
hsl(220.00 8.94% 46.08%)
Alle Formate
- HEX
- #6b7280
- RGB
- rgb(107 114 128)
- RGB (legacy)
- rgb(107, 114, 128)
- HSL
- hsl(220.00 8.94% 46.08%) → hsl(220 9% 46%)
- HWB
- hwb(220 42% 50%)
- OKLCH
- oklch(0.551 0.023 264.4) · oklch(55.1% 0.023 264.4)
- OKLab
- oklab(0.551 -0.002 -0.023)
- Lab (D50)
- lab(47.81 -0.39 -8.70)
- LCH (D50)
- lch(47.81 8.71 267.45)
- Display P3
- color(display-p3 0.4246 0.4462 0.4970)
- Linear sRGB
- color(srgb-linear 0.1470 0.1683 0.2159)
Gamut: sRGB und Display P3
#6B7280 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.248, Display P3 von 0.265; diese Farbe nutzt 9 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #6b7280;
color: rgb(107 114 128);
color: hsl(220 9% 46%);
color: oklch(0.551 0.023 264.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.551 0.023 264.4);
}
/* arbitrary values */
class="text-[#6b7280] bg-[oklch(0.551_0.023_264.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4246 0.4462 0.4970); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #6b7280 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- gray-500#6A7282
- zinc-500#71717B
- v3 zinc-500#71717A
- v3 slate-500#64748B
- mist-500#67787C
- slate-500#62748E
- neutral-500#737373
- mauve-500#79697B
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #7C8492 · oklch(0.611 0.023 264.4) · ΔL +0.06
- #5A616E · oklch(0.491 0.023 264.4) · ΔL −0.06