The kinetic energy is maximum when the potential energy is maximum, and this occurs when the velocity is maximum and the mass is at the equilibrium position.