While drawing with the pencil tool, the color that the pencil draws with is called the foreground color. The background color is the color that the eraser tool "paints" with in order to erase any lines drawn with the foreground color.
The color palette consists of 2 rows of colored boxes. Clicking any colored box with the left mouse sets the foreground color. Clicking any colored box with the right mouse will set the background color.