Formal:
* Bonjour, soleil! (Good morning, sun!) - This is the most literal translation, but sounds a bit stiff.
* Bonne journée, soleil! (Good day, sun!) - This is a bit more natural and friendly.
Informal:
* Coucou, soleil! (Hi, sun!) - This is very casual and playful.
* Salut, soleil! (Hello, sun!) - This is a bit more neutral than "Coucou".
* Salut, mon soleil! (Hello, my sunshine!) - This is very affectionate and endearing.
More poetic options:
* Bonjour, rayon de soleil! (Good morning, ray of sunshine!)
* Oh, soleil, tu es si beau! (Oh, sun, you are so beautiful!)
The best option will depend on the specific situation and your relationship with the person you're addressing.