@Bangal450 Which version of SharePoint you are using? Are you using SharePoint online or SharePoint on premise?
There is no option from SharePoint UI to change the colors for folders. But, if you are using SharePoint online modern experience, you might able to show your custom images for folders/files instead of default images using JSON formatting.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.