HEX in HSL: #778899
Auch bekannt als: CSS lightslategray, CSS lightslategrey
Ergebnis
#778899 → hsl(210 14% 53%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #778899. 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.4667 G = 0.5333 B = 0.6000
2. max, min, Δ
max = 0.6000 min = 0.4667 Δ = max − min = 0.1333
3. L
L = (max + min) / 2 = 0.5333 = 53.33%
4. S
S = Δ / (1 − |2L − 1|) = 0.1429 = 14.29%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.4667 − 0.5333) / 0.1333 + 4) = 210.00°
6. HSL
hsl(210.00 14.29% 53.33%)
Alle Formate
- HEX
- #778899
- RGB
- rgb(119 136 153)
- RGB (legacy)
- rgb(119, 136, 153)
- HSL
- hsl(210.00 14.29% 53.33%) → hsl(210 14% 53%)
- HWB
- hwb(210 47% 40%)
- OKLCH
- oklch(0.619 0.033 248.4) · oklch(61.9% 0.033 248.4)
- OKLab
- oklab(0.619 -0.012 -0.030)
- Lab (D50)
- lab(55.77 -3.45 -11.29)
- LCH (D50)
- lch(55.77 11.80 253.02)
- Display P3
- color(display-p3 0.4794 0.5313 0.5935)
- Linear sRGB
- color(srgb-linear 0.1845 0.2462 0.3185)
Gamut: sRGB und Display P3
#778899 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.168, Display P3 von 0.217; diese Farbe nutzt 19 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #778899;
color: rgb(119 136 153);
color: hsl(210 14% 53%);
color: oklch(0.619 0.033 248.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.619 0.033 248.4);
}
/* arbitrary values */
class="text-[#778899] bg-[oklch(0.619_0.033_248.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4794 0.5313 0.5935); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #778899 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- slategray#708090
- gray#808080
- mist-500#67787C
- cadetblue#5F9EA0
- v3 slate-500#64748B
- slate-500#62748E
- gray-500#6A7282
- v3 gray-500#6B7280
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #899AAC · oklch(0.679 0.033 248.4) · ΔL +0.06
- #667687 · oklch(0.559 0.033 248.4) · ΔL −0.06