You asked

Sigma 40mm f 1 4 dg hsm art vs viltrox af 27mm f 1 2 pro?

Here is what the site says about that.

From Sigma 40mm f/1.4 DG HSM Art: Sigma 40mm f/1.4 DG HSM Art: A prime lens by Sigma for Full frame cameras, 40mm f/1.4. Specs - Maker: Sigma - Focal length: 40mm (prime) - Maximum aperture: f/1.4 - Made for: Full frame sensors - Mounts: Canon EF, Nikon F, Sony E, L-Mount - Stabilised: no - Autofocus: yes What it frames like - On full frame (Canon EF, Nikon F, Sony E, L-Mount): as marked, 40mm. - On APS-C (Nikon F, Sony E, ...

From Viltrox AF 27mm f/1.2 Pro: Viltrox AF 27mm f/1.2 Pro: A prime lens by Viltrox for APS-C cameras, 27mm f/1.2. Specs - Maker: Viltrox - Focal length: 27mm (prime) - Maximum aperture: f/1.2 - Made for: APS-C sensors - Mounts: Fujifilm X, Sony E, Nikon Z - Stabilised: no - Autofocus: yes What it frames like - On APS-C (Fujifilm X, Sony E, Nikon Z): like 40mm on full frame; f/1.2 gives about the depth of field of f/1.8 there. ...

Quoted from this site's pages.

From these pages