Your wall color should be two tones lighter than your carpet. If you have dark walls, you can also go a few tones lighter with your carpet. Since it's much easier to change your wall color than your carpet, choose your carpet color first and then match your wall color.