For each of your guesses, the background will appear gray if it is the correct item in the correct position, red if the correct answer for that square is elsewhere in that row, blue if it is elsewhere in that column, and green if it is elsewhere in the grid. If it is nowhere in the grid, the background will be white.
Try your hand; it's addicting, once you get the hang of it.