Colours in a 3D print?

What i want is to 3D print a rubik's cube, and have all the colours actually part of the cube but coloured differently. The thing is, i have never seen an object with pieces that have multiple colours so i want to know if its possible and if not ways to get around it.

Thanks in advance!