HTML color codes are hexadecimal triplets representing the colors Red, Green, and Blue (#RRGGBB). For example, in the color Red, the color code is #FF0000, which is '255' red, '0' green, and '0' blue. These color codes can be used to change the color of the background color, text color, and tables,DIV,Span on a web page.
Demo

Demo