HEX in HSL: #45556C
Auch bekannt als: Tailwind slate-600
Ergebnis
#45556C → hsl(215 22% 35%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #45556c. 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.2706 G = 0.3333 B = 0.4235
2. max, min, Δ
max = 0.4235 min = 0.2706 Δ = max − min = 0.1529
3. L
L = (max + min) / 2 = 0.3471 = 34.71%
4. S
S = Δ / (1 − |2L − 1|) = 0.2203 = 22.03%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.2706 − 0.3333) / 0.1529 + 4) = 215.38°
6. HSL
hsl(215.38 22.03% 34.71%)
Alle Formate
- HEX
- #45556c
- RGB
- rgb(69 85 108)
- RGB (legacy)
- rgb(69, 85, 108)
- HSL
- hsl(215.38 22.03% 34.71%) → hsl(215 22% 35%)
- HWB
- hwb(215 27% 58%)
- OKLCH
- oklch(0.445 0.043 257.4) · oklch(44.5% 0.043 257.4)
- OKLab
- oklab(0.445 -0.009 -0.042)
- Lab (D50)
- lab(35.49 -1.71 -15.44)
- LCH (D50)
- lch(35.49 15.53 263.67)
- Display P3
- color(display-p3 0.2829 0.3315 0.4157)
- Linear sRGB
- color(srgb-linear 0.0595 0.0908 0.1500)
Gamut: sRGB und Display P3
#45556C 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.204; diese Farbe nutzt 27 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #45556c;
color: rgb(69 85 108);
color: hsl(215 22% 35%);
color: oklch(0.445 0.043 257.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.445 0.043 257.4);
}
/* arbitrary values */
class="text-[#45556c] bg-[oklch(0.445_0.043_257.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2829 0.3315 0.4157); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #45556c calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 slate-600#475569
- gray-600#4A5565
- v3 gray-600#4B5563
- zinc-600#52525C
- v3 zinc-600#52525B
- mist-600#4B585B
- mauve-600#594C5B
- neutral-600#525252
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #55667E · oklch(0.505 0.043 257.4) · ΔL +0.06
- #35455B · oklch(0.385 0.043 257.4) · ΔL −0.06