The dependence of intrinsic alignment of galaxies on wavelength using KiDS and GAMA