If you don’t happen to need a new roof right now, you can still have a lighter colored one that will reflect more of the sun’s heat away instead of absorbing it.
There are roof paints with special metallic pigments that reflect light and heat.
White is not the best choice because it reflects too much and may cause problems for airplanes and for neighbors on higher ground. Any relatively light color made with the special pigments will work.
https://www.echo-ca.org/article/guide-solar-reflective-paints-energy-efficient-homes