An RGB color value is expressed with rgb(red, green, blue). The value of rgb parameters is an integer (between 0 and 255) which defines the intensity of color. Based on rgb colors and their intensity, we can produce any chromaticity. In contract, a hexadecimal color is specified with #RRGGBB. RR (red), GG (green) and BB (blue) are hexadecimal integers between 00 and FF specifying the intensity of the color.