You asked

Which 45mm lens fits a leica sl2 or panasonic lumix s5 best?

Here is what the site says about that.

From Panasonic Lumix S5: Panasonic Lumix S5: A mirrorless camera by Panasonic with a 24.2-megapixel full frame sensor, announced in 2020. A compact full-frame body with contrast-detect autofocus; cheap used. Specs - Maker: Panasonic - Mount: L-Mount - Sensor: Full frame, 36 x 24mm, crop factor 1.0 - Resolution: 24.2 megapixels - Stabilisation: in the body - Announced: 2020 - Type: mirrorless camera Price in France - Used: 664–684 € (MPB, MPB) Checked on 27 October 2026 ...

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}.