I have melasma, but you would never know it! After YEARS of treatments that didn't work (IPL, BBL, Profractional, prescription creams like Triluma), I now see a clinical person who does deep, triple chemical peels every 3 months. I also use Glo mineral foundation which is sold at my cosmetic surgeon's office. Or, you can find it here:
https://www.gloprofessional.com/luxe-liquid-foundation
You will never get a good result with makeup alone. I swear by the triple chemical peels. It literally takes the melasma right off. BUT, it slowly creeps back and it is something you need to stay on top of. When I initially started seeing my skincare professional, it was a peel every month. Now I am able to space it out to every 3 or even 4 months. It has taken years and years off of my age! I would shout this treatment from the rooftops if I could. But be forewarned....each chemical peel is $100 in my area. It might be more depending on where you live.
Make sure you use sunscreen.
Also know that birth control pills can contribute to the problem as well!