Tutorial Topics
Elements: html head title body Paragraph and Line Break
hex color code - HTML 5
4166    Arnab De    04/05/2017


We can use some basic color for the web design.

  • Red
  • Green
  • Blue
  • Gray
  • Pink
  • Violet
  • White
  • Black
  • Cyan

We can use the colors by its name or by the Hex codes.

Hex Color Code
Basic Colors

But these are not sufficient. We need more and more color for creating a good looking page. For that we use the hex code. Hex codes are started with a # (hash) sign other three part.

These parts are respectively define the colour depth of the Red, Green, Blue. The minimum and maximum value of the every color is 0 and 255. If convert the range in hexadecimal then the range is 0 to FF.


This hexadecimal system is compatible with the all leading browsers. That is why colour’s generated by thissystem is called true colour’s . this use the following format. First two digit specified for red, second part specified for green and third part specify for blue.

Hex Color Code
Safe Colors

If we use the same value for the both of the digit of any segment then we can use it ones. i.e. #FFAA77 is equivalent to #FA7.


Every combination of the digit creates a unique colour shade. But after various experiment 22 colors are declared s safe color. i.e. this colors remain same in any situation for any devices.

Safe Colors
Elements: html head title body Paragraph and Line Break
Author Details
Arnab De
I have over 16 years of experience working as an IT professional, ranging from teaching at my own institute to being a computer faculty at different leading institute across Kolkata. I also work as a web developer and designer, having worked for renowned companies and brand. Through tutorialathome, I wish to share my years of knowledge with the readers.
Enter New Comment
Comment History
No Comment Found Yet.
Rabindranath Tagore
Don't limit a child to your own learning, for he was born in another time.
Rabindranath Tagore
Today So Far
Total View (Lakh)
26/05/2018     41979
01/01/2018     35991
28/06/2017     34082
25/06/2018     33432
02/08/2017     32394
01/08/2017     26807
06/07/2017     26788
15/05/2017     26415
14/07/2017     21852
21/04/2018     20711