Hexadecimal Color

A Hexadecimal color is a color represented by a hexadecimal number. Hexadecimal colors are often used in programming because they are compact. The standard hexadecimal color is six digits prefixed with the pound sign ( # ) : #FFFFFF.

Each two digits, representing one byte, signifies the red, green, and blue components of the color. For example, in the above hexadecimal color (white), it breaks down like this :

#FFFFFF

red   : FF
green : FF
blue  : FF

Very few game programming languages, such as Brutus2D, use hexadecimal colors of eight digits, with the first two digits being reserved for alpha transparency.

Related Pages

Categories: Color : Graphics
page_revision: 7, last_edited: 1238191352|%e %b %Y, %H:%M %Z (%O ago)