Thank you for the opportunity to help you with your question!
Flowers are usually conspicuous and fragrant in order to attract their pollinators. The colors and fragrance enable the pollinating agents such as bees, butterflies and birds to easily access the flowers and thereby supporting pollination that leads to seed formation.
Please let me know if you need any clarification. I'm always happy to answer your questions.