Since birth control pills and hormone replacement medicine affect the body's hormones, they can trigger melasma.