How to track skin tone?

I’m still missing something…

Here are two pictures that were taken on the same day, in natural (A) and artificial (B) light, from the raw image (1), to an image with averaged colors (2), and the corrected image (3):


This is the histogram before and after correcting an image by using the white area to set the white balance, and auto-adjusting whites and blacks to “stretch” the histogram: