Astronomers can use the color of an object in space to determine its

Prettyness?

nope, I bet temperature is the answer.