You asked

Which pentax k mount lens gives the best portrait background blur on a k s2 for under a few hundred euros?

The guide's pick for portrait blur on a Pentax K-S2 is a fast prime, because the wide aperture does most of the work. The K-S2 is APS-C, so each lens frames about 1.5 times its focal length.

Keep in mind that blur also comes from standing closer, putting more distance between your subject and the background, and using a longer focal length. A cheap wall-distance change can help as much as a faster lens. This answer can't quote prices, because the pages it draws on don't include a price section here. Check each lens page's price section for current prices and shop links, since prices change.

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