Hi @avinash singh ,
After my testing and searching, there is currently no way to Change the color of webpart header. I recommend you give suggestion in the feedback portal and help to make improvements. Many features of current products are designed and upgraded based on customers’ feedback.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.