Logo of aks.htmlplanet.com

Links
Play Intro
New Stuff
Home
Poems
Jokes
Quotes
Wallpapers
Learn HTML
-Getting Started
-What are tags ?
-Hex Codes
-Body Tag
-Font Tag
-Useful Tags
-Tables
-Adding Images
-Linking Pages
-Adding Sounds

Suggestion Book














DigiArc :: Owned By Aakash Ashvin Shah

 .:: Welcome to aks.htmlplanet.com !





 .:: Learn HTML > Hex Codes / Colors ...


.:: The full form of Hex Codes is Hexadecimal Codes. These codes are used to define colors. Each Hex Code stands for an individual color. It starts from '#000000' and ends at '#FFFFFF'.

.:: The Hexadecimal System

In Hexadeximal system after 9 comes 'A' which stands for 10 similarly 'B' for 11, 'C' for 12, .... and 'F' for '15'. Hence the '#FFFFFF' actually stands for '# 15 15 15 15 15 15' but you can't write that way and the computer would take 15 as one and five ! Got It ! That's why Hexadecimal system is introduced.

.:: Understanding the codes

No one in the world is so intelligent that he could memorize all the hex codes ! But some smart people can ! Like you. It's simple yaar.
  • Now the first hex code is for the darkest color. i.e '#000000' stands for 'Black' while the last hex code stands for the lightest color. i.e '#FFFFFF' = 'White'.
  • Now as you go on increasing the numbers the color would become lighter and lighter.
  • Alse the first two numbers (#xy....) stand for the shades of red, the second two numbers (#..xy..) stand for the shades of green while the last two numbers (#....xy) stand for the shades of blue. Take this example :
    '#AA0000' would give you the darkest shade of red while '#FF0000' would give you the lightest shade of red.


  • .:: Any Alternatives ?

    Of course there are. If you are not too specific about the shade of the color you want you can directly specify the name. Such as black, gray, white, blue, royalblue, skyblue, purple, magenta, red, yellow, orange, pink, silver, gold ... and any color you know !



    Learn HTML > Hex Codes / Colors







     .:: Buck Up ! You can do it !