You asked
Which lens for portraits on the pentax kf?
For portraits on the Pentax KF, the lens matters more than the body, and a fast lens at a portrait focal length does most of the work. On this APS-C body, a lens around 80 to 130mm full-frame equivalent gives flattering compression and a soft background. The guide's portraits page makes the same point: the camera matters less than the lens.
The sweet spot is the Pentax smc DA* 55mm f/1.4 SDM. It frames like 82mm on full frame, is fast enough for dim window light, and is small enough to carry all day. It gives up some reach compared with longer lenses.
For tighter framing and even more background blur, the Pentax HD D FA* 85mm f/1.4 ED SDM AW frames like 128mm. It is heavier and needs more room to work, but it is the most dramatic option here.
On a tighter budget, the Pentax smc DA 50mm f/1.8 frames like 75mm and still gives a soft background and good subject separation. It is the cheapest route to a real portrait look on this body. The Pentax HD DA 70mm f/2.4 Limited sits between these in size and reach.
Remember that the KF's in-body stabilisation steadies the camera, not a moving subject. For portraits, the wide aperture and the light do the real work. Face a window, turn your subject slightly, and expose for the face, as the light section explains. The first lenses guide suggests a fast standard prime as your second lens, which is a good place to start. Check each lens page for current prices and shop links; this answer does not quote them.
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}.