You asked

Which lens on the pentax k r is best for tight portraits with a soft background?

For tight portraits with a soft background on the Pentax K-r, look for a fast lens of about 75mm or longer, which frames like 110mm or more on full frame. Three picks fit that:

If you'd rather zoom, the [Pentax smc DA* 50-135mm f/2.8 ED [IF] SDM](/gear/lenses/pentax-smc-da-50-135mm-f-2-8-ed-if-sdm/) covers 75 to 202mm equivalent at f/2.8 throughout.

Blur also depends on distance. Moving your subject away from a wall often helps as much as a faster lens. The Portraits page explains why longer focal lengths flatter faces, and aperture and background blur covers the depth-of-field trade-offs.

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