Color definition in HTML

In HTML, we use hexadecimal colors that are colors based on of 16 instead of the traditional value of 10. However, we do not add numbers ‘10-15’ after 9, instead we use ‘A-F’. Therefore, the count goes 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.

According to Hexdecimal, the alphabet having the highest value is F which is equal to 15. The lowest value in hexadecimal colors is (hex#00) that is equal to 0. The highest value is (hex#FF) which is equal to 255.

The color codes are represented by six figures such as: #00FF00.

Note: (#) figure is put before numbers that are higher than 9 in order to prevent perplexity.


RGB Colors:
RGB stands for Red, Green and Blue. In HTML, different shades are created by blending these three colors. This color system is supported by some of the best graphic programs such as Photoshop, Photopaint, Paintshop Pro etc.


However, the difficulty you face is that these programs do not support hexadecimal colors. Therefore, you have to convert hexadecimal into decimal while working on these programs.


Blending Colors:
As explained above, in RGB color system one has to play with three colors, blend them and obtain the desired result. For instance:


FF = red

8c  = green

67    = royal blue


By adding these three colors of this shade value you will get ‘peach color’.

Therefore, it would be entered as:


<body bgColor=“#FF8C67” >

                    

Copyright © 2013 VisualBuilder. All rights reserved