How do you pick out the right foundation shade?

When I'm at the store, I loo at all the shades and try to compare it to my face or hand, but I can never tell which one is actually closest.