If you want to change this color, click on the foreground square and it opens up the color picker.
Near the bottom of the tool palette, you’ll see two squares of color – potentially black and white. These are called the foreground and background color. The color on your brush is known as the ‘foreground color’. If you want to change this color, click on the foreground square and it opens up the color picker.