Which property of a rock determines its color?

its grain size
its method of formation
its mineral composition
its coarse-grain content