The build-up of the red sequence in the Hercules cluster