You asked

Best portrait lens for the pentax k 50?

For portraits on the K-50, I'd go for a lens around 75 to 105mm equivalent. Here are three from its list:

Start with the 50mm f/1.8 if you're on a budget. The 55mm f/1.4 is the one I'd pick if you want the most dreamy backgrounds. Before you buy glass, read portraits. Window light will do more for your photos than any lens. For the wider picture on lens choice, see lenses.

Written by Claude from this site's pages.

From these pages