You asked

Sigma 45mm f 2 8 dg contemporary vs 7artisans af 40mm f 2 5?

The 7Artisans AF 40mm f/2.5 is the better pick for dim rooms and moving subjects. Its f/2.5 opening lets in slightly more light than the Sigma's f/2.8, about a third of a stop. It also fits Nikon Z bodies as well as Sony E and L-Mount, which the Sigma does not. The Sigma's 45mm is a little longer, and its wider frame suits full-frame portraits and environmental shots. The Sigma also has a softer, classic look wide open, which the guide's portrait lens notes would favour for people. Neither lens has stabilisation, so for low light the aperture matters more than steadiness. On APS-C, the Sigma gives about the depth of field of f/4.2 and the 7Artisans about f/3.8, so the 7Artisans blurs the background a little more (how crop factor changes depth of field).

Good full-frame bodies for either lens include:

The guide's aperture notes explain why the extra stop of light is worth having when light is poor.

Written by Claude 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}.