You asked
Best portrait lens for pentax k?
The site doesn't have a Pentax K-mount portrait lens page to name a specific lens from. Its catalogue here covers three Pentax DSLR bodies: the Pentax K-500, the Pentax K-S1 and the Pentax K-3. All three use APS-C sensors, so the portrait rules for that size apply.
The guide's portraits page says the lens matters far more than the camera. A cheap body with a good portrait lens beats an expensive body with a kit zoom. Pick the lens first, then choose the body to fit your budget.
For APS-C, the guide's first lenses section suggests a fast standard prime of about 33 to 35mm at f/1.4 to f/1.8. That focal length is wide enough for environmental portraits and fast enough to blur the background and work in dim light. If you want a tighter head-and-shoulders look, the guide also recommends an 85mm for portraits, which on APS-C means you should check the equivalent focal length before buying.
Light matters as much as glass. The light beats gear section explains that window light, open shade or the hour before sunset will improve a portrait more than any lens. Face your subject toward a window, turn them slightly and expose for the face.
The K-3 has the highest resolution of the three bodies here, while the K-500 and K-S1 are the cheaper choices for a first portrait setup.
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}.