You asked

Best portrait lens for the pentax kf?

For portraits, the lens matters far more than the camera, so the Pentax KF's APS-C sensor (a 1.5 crop) is less important than the glass you put on it. Its in-body stabilisation steadies the camera, but it won't freeze a moving subject, so a fast aperture matters more for indoor portraits. Three picks from the KF's lens list:

Start with the 55mm for most portraits. Whichever lens you choose, the light matters more than any of them: put your subject by a window, turn them slightly, and expose for the face, as the portraits guide explains. For a wider starting point, the lenses guide suggests a fast standard prime as your first lens.

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