We investigate the origin of the color-magnitude relation (CMR) observed in cluster galaxies by using a combination of a cosmological N-body simulation of a cluster of galaxies and a semi-analytic model of galaxy formation. The departure of galaxies in the bright end of the CMR with respect to the trend defined by less luminous galaxies could be explained by the influence of minor mergers.