You asked

Which lens for the canon eos 5d mark iv is best for portraits in dim rooms?

For dim rooms, the aperture matters most. A wide opening lets in light and keeps shutter speeds fast enough to freeze a person who is moving or talking. The 5D Mark IV is a full frame camera, so an 85mm is a classic portrait length on it, and the portraits guide points to the 85mm as the standard choice.

If you want the wide aperture without the bulk, the 85mm f/1.8 options are a lighter step down. Remember that a lens needs a camera of its mount, and the Canon EF lenses here fit the 5D Mark IV directly.

The guide does not give prices for these lenses here, so check each lens page for current figures before you decide.

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