You asked

Which lens is best for portraits on an aps c sony a6400?

For portraits on the Sony a6400, aim for a lens that frames like 75-85mm, the classic portrait range. On APS-C that means a lens of about 50-56mm, as the portraits guide explains. Eye autofocus, which the camera section rates highly, does the focusing, so focal length and aperture matter most.

The Sony a6400 takes these lenses well:

The a6400 has no in-body stabilisation, but portraits are usually shot at f/2 to f/2.8 in fair light, so the lens aperture does more than stabilisation. A fast APS-C lens also narrows much of the gap to full frame, as the sensor sizes page covers. I haven't quoted prices here, so check each lens page for current figures before you buy.

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