Are you 100% sure they are mealworms?
a close relative to mealworms are Superworms, and they don't pupate unless they don't have any food. Mealworms tend to be a pale color throughout their bodies (though a little brown may be seen)
the freshly pale ones you describe mean that they are...