If objects with different colors are selected, the compound object will have the color of the bottommost object.
See Also
Compounding Objects
Compounding Objects by Color
Releasing Compounded Objects