Write a function that takes a dictionary representing points in 3D space and an associated color for each point, and returns the centroid of the set of points in each color