It’s important for your immune system to get the nutrients it needs in order to function properly. While there are some not-so-colorful foods that can benefit your body such as yogurt and garlic, thinking of your diet as a rainbow is the best way to ensure anoptimal immune system.