# HTML Color Code

## HTML DECIMAL Color Code and HEX Color Code

In this tutorial you can learn about RGB color code and HEX color code. HEX color code use Hexadecimal numbers. Hexadecimal numbers are numbers based on the value of 16. Means that it contain 16 number 0 to 9 and then A,B,C,D,E,F for 10,11,12,13,14,15 respectively.

For example a typical hexadecimal color value would be A53C8D.

Where RGB color code defined by the three colors Red, Green and Blue. Most graphics tools Photoshop, Photopaintetc handle colors in a RGB color system. But in HTML mostly we define the color in hexadecimal numbers (HEX Code).

## HTML Color Table with RGB Color Code

 RGB(255,0,0) RGB(0,255,0) RGB(0,0,255) RGB(0,0,0) RGB(255,255,255) RGB(120,120,120) RGB(240,40,120)

In HTML HEX color codes create with 6 digits

For Example #FF3C96.

Where The first two digits show the amount of red color which are FF in above color. Second two digit show the green color which are 8C and last two digit show the Blue color which are 67 in above example. The maximum number in HEX system is 15 which is F. So with Two figure FF is equell to 255.

Now replace 255 with FF and get the HEX Color Code Table.

## HTML Color Table With HEX Code

 #FF0000 #00FF00 #0000FF #000000 #FFFFFF #787878 #F02878

You can convert the Decimal value to HEX number in your window calculator. for this purpose open windows calculator and Open View menu and select Programmer. Select Decimal mode enter decimal number for example 240 and then click on HEX mode. its display the HEX number F0.

In HTML we cal also use color name For Example <body bgColor="Blue">

But In HTML we use very few color with tere name which are :

Black ,Yellow, Red, Maroon, Gray, Lime, Green, Olive, Silver, Aqua, Blue, Navy, White, Fuchsia, Purple.