Majority C-coloring of graphs