You asked

Is the panasonic lumix s 50mm f 1 8 sharp enough for a 47 megapixel leica sl2 in low light?

Here is what the site says about that.

From Panasonic Lumix S 50mm f/1.8: Panasonic Lumix S 50mm f/1.8: A prime lens by Panasonic for Full frame cameras, 50mm f/1.8. Specs - Maker: Panasonic - Focal length: 50mm (prime) - Maximum aperture: f/1.8 - Made for: Full frame sensors - Mounts: L-Mount - Stabilised: no - Autofocus: yes What it frames like - On full frame (L-Mount): as marked, 50mm. - On APS-C (L-Mount): like 75mm on full frame; f/1.8 gives about the depth of field of f/2.7 there. ...

From Leica SL2: Leica SL2: A mirrorless camera by Leica with a 47-megapixel full frame sensor, announced in 2019. High resolution and in-body stabilisation in a weather-sealed body. Specs - Maker: Leica - Mount: L-Mount - Sensor: Full frame, 36 x 24mm, crop factor 1.0 - Resolution: 47 megapixels - Stabilisation: in the body - Announced: 2019 - Type: mirrorless camera Focal lengths on it Full frame is the reference size: lenses frame as marked. ...

Quoted from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.