A new variation of the coloring problem, -coloring, is defined in this paper. A coloring of a graph is a function such that if is adjacent to . Given a graph and a function , is -colorable if it admits a coloring with for each . It is proved that -coloring lies between coloring and list-coloring, in the sense of generalization of problems and computational complexity. Furthermore, the notion of perfection is extended to -coloring, giving rise to a new characterization of cographs. Finally, a polynomial time algorithm to solve -coloring for cographs is shown.