HSL in HEX: #6A7282
Auch bekannt als: Tailwind gray-500
Ergebnis
hsl(220.00 10.17% 46.27%) → #6A7282
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. input
H = 220.00°, S = 10.17%, L = 46.27%
2. C
C = (1 − |2L − 1|) × S = 0.09411
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.03137 (H / 60° = 3.6667, sector 3)
4. m
m = L − C / 2 = 0.41564
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.03137, 0.09411) R = round((0.00000 + 0.41564) × 255) = 106 G = round((0.03137 + 0.41564) × 255) = 114 B = round((0.09411 + 0.41564) × 255) = 130
6. RGB → HEX
#6A7282
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