A boy moves with his mother to a space colony, possibly on the moon, where it is believed there is no alien life. The boy discovers that the rocks on the planet are actually sentient creatures! The creatures speak by changing colors. The boy befriends one whose name is yellow-green and he calls his friend yelgr or yellger or something like this.
Could it be The Green Book by Jill Paton Walsh?