If sun is hotter than bunsen burner then why is it yellow and the burner gives blue flame?

temperature of burner is about 1700 C
temperature of sun is about 6000C

then why sun appears yellow
18 answers 18