Gluing Painted Plastic Parts

Hello Everyone,

I’m new to model building. What’s the best way to glue plastic parts together when they have already been painted different colors?