Colour–magnitude relations of late-type galaxies