Dear Student,
sun never be in black colour .it can be blue red yellow and white .
after the death of the sun it can become the neutron star or the black hole .
this black hole is the black condensed mass had very strong gravity that even light cannot escape thats why it looks black.
Regards