HTML Colors

Colors are displayed combining RED, GREEN, and BLUE light. The simple way to add colors to your web page is simply write colors in english words, ie simply write "red" as color .Using hexadecimal color code is a better method.16 million colors are there for html use.

Color Values

CSS colors are defined using a hexadecimal (hex) notation for the combination of Red, Green, and Blue color values (RGB). The lowest value that can be given to one of the light sources is 0 (hex 00). The highest value is 255 (hex FF). Hex values are written as 3 double digit numbers, starting with a # sign.

Figure indicate the colors and their corresponding hexadecimal codes.

Remember The following.

1. Hexa decimal colorcodes consists of a number sign (#) followed by a combination of 6 charactors.

2. The first two digits in the color code determine how much red is in color, next two indicate how much green is there and the last two digits indicate the involvement of blue color.

Jesna N Scaria

Articles : 32

I am a Software Developer at Leedhar Technologies
India India