HEX in HSL: #6A7282
Auch bekannt als: Tailwind gray-500
Ergebnis
#6A7282 → hsl(220 10% 46%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #6a7282. 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.4157 G = 0.4471 B = 0.5098
2. max, min, Δ
max = 0.5098 min = 0.4157 Δ = max − min = 0.0941
3. L
L = (max + min) / 2 = 0.4627 = 46.27%
4. S
S = Δ / (1 − |2L − 1|) = 0.1017 = 10.17%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.4157 − 0.4471) / 0.0941 + 4) = 220.00°
6. HSL
hsl(220.00 10.17% 46.27%)
Alle Formate
- HEX
- #6a7282
- RGB
- rgb(106 114 130)
- RGB (legacy)
- rgb(106, 114, 130)
- HSL
- hsl(220.00 10.17% 46.27%) → hsl(220 10% 46%)
- HWB
- hwb(220 42% 49%)
- OKLCH
- oklch(0.551 0.027 264.3) · oklch(55.1% 0.027 264.3)
- OKLab
- oklab(0.551 -0.003 -0.027)
- Lab (D50)
- lab(47.78 -0.40 -9.93)
- LCH (D50)
- lch(47.78 9.93 267.70)
- Display P3
- color(display-p3 0.4215 0.4461 0.5041)
- Linear sRGB
- color(srgb-linear 0.1441 0.1683 0.2232)
Gamut: sRGB und Display P3
#6A7282 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 11 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #6a7282;
color: rgb(106 114 130);
color: hsl(220 10% 46%);
color: oklch(0.551 0.027 264.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.551 0.027 264.3);
}
/* arbitrary values */
class="text-[#6a7282] bg-[oklch(0.551_0.027_264.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4215 0.4461 0.5041); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #6a7282 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 gray-500#6B7280
- zinc-500#71717B
- v3 zinc-500#71717A
- v3 slate-500#64748B
- slate-500#62748E
- mist-500#67787C
- neutral-500#737373
- mauve-500#79697B
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #7B8494 · oklch(0.611 0.027 264.3) · ΔL +0.06
- #596170 · oklch(0.491 0.027 264.3) · ΔL −0.06