You asked
Sigma 50mm f 2 dg contemporary vs viltrox af 50mm f 1 8?
For a Sony E camera, the Viltrox AF 50mm f/1.8 is the better buy for low light and people. Its f/1.8 gathers more light than the Sigma's f/2, and the difference shows most in dim rooms and when you want a softer background. On APS-C it gives about the background blur of f/2.7 on full frame, so the gap in depth of field is real.
The Sigma 50mm f/2 DG Contemporary is the choice if you have a Leica or Panasonic camera with an L-Mount, since the Viltrox is made only for Sony E. On an APS-C body it gives about the depth of field of f/3, a little less blur than the Viltrox. Both lenses are autofocus, and neither is stabilised, so neither helps with a moving subject in dim light. Their fast apertures do that job.
Both are 50mm lenses for full-frame sensors, and the portraits guide calls a 50mm f/1.8 the cheapest great lens for people. The Viltrox fits that description on Sony. If you are starting out, the lens guide suggests a fast standard prime like these as your second lens after a zoom.
This guide's pages don't give prices for these two lenses, so it can't say which one costs less. Check the current price on each catalogue page before you buy.
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}.