A color bar, also known as a color gradient or color scale, is a graphical representation that shows a spectrum of colors ranging from the lightest to the darkest shade. It is commonly used in scientific charts, maps, and illustrations to indicate the intensity or magnitude of a variable.