click on the color panel to to change it's color. the color depends on where the sliders at on the colorbar. if the square is darker you can select a color form the panel when the square is lighter you can add the selected color to the panel