Both Sun and a Star have Helium and Hydrogen but the sun light is yellow or orange and the star light is white.
Why?
Stars are celestial bodies that emit light of their own like our sun.