In a planet's orbit, perihelion is the nearest and aphelion is the farthest point from Sun. Speed of the planet is maximum at perihelion and minimum at aphelion. So, KE is maximum at perihelion and minimum at aphelion.
Where KE is maximum, PE is minimum.
PE and KE of the planet are dependent on both mass of planet and on semi-major axis.