HSL in HEX: #708090
Auch bekannt als: CSS slategray, CSS slategrey
Ergebnis
hsl(210.00 12.60% 50.20%) → #708090
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #708090. 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 = 210.00°, S = 12.60%, L = 50.20%
2. C
C = (1 − |2L − 1|) × S = 0.12550
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.06275 (H / 60° = 3.5000, sector 3)
4. m
m = L − C / 2 = 0.43925
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.06275, 0.12550) R = round((0.00000 + 0.43925) × 255) = 112 G = round((0.06275 + 0.43925) × 255) = 128 B = round((0.12550 + 0.43925) × 255) = 144
6. RGB → HEX
#708090
Alle Formate
- HEX
- #708090
- RGB
- rgb(112 128 144)
- RGB (legacy)
- rgb(112, 128, 144)
- HSL
- hsl(210.00 12.60% 50.20%) → hsl(210 13% 50%)
- HWB
- hwb(210 44% 44%)
- OKLCH
- oklch(0.593 0.031 248.3) · oklch(59.3% 0.031 248.3)
- OKLab
- oklab(0.593 -0.011 -0.029)
- Lab (D50)
- lab(52.70 -3.28 -10.74)
- LCH (D50)
- lch(52.70 11.23 253.00)
- Display P3
- color(display-p3 0.4512 0.5000 0.5586)
- Linear sRGB
- color(srgb-linear 0.1620 0.2159 0.2789)
Gamut: sRGB und Display P3
#708090 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.161, Display P3 von 0.208; diese Farbe nutzt 19 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #708090;
color: rgb(112 128 144);
color: hsl(210 13% 50%);
color: oklch(0.593 0.031 248.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.593 0.031 248.3);
}
/* arbitrary values */
class="text-[#708090] bg-[oklch(0.593_0.031_248.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4512 0.5000 0.5586); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #708090 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- lightslategray#778899
- gray#808080
- mist-500#67787C
- v3 slate-500#64748B
- slate-500#62748E
- gray-500#6A7282
- v3 gray-500#6B7280
- zinc-500#71717B
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #8292A2 · oklch(0.653 0.031 248.3) · ΔL +0.06
- #5F6E7E · oklch(0.532 0.031 248.3) · ΔL −0.06