Aug 20, 2014

HTML Color Codes

As an aid for our next few lessons, we are going to talk briefly about HTML color codes. You may need this knowledge to understand future lessons clearly.

Red, Green and Blue


If we ask any artiste what are the basic colors, they'll simply reply as red, green and blue. We can create almost any color by combining red, green and blue. The same principle is used when naming colors in HTML. HTML color codes are either given with hexadecimal notations or using (RGB) values. RGB stands for red, green and blue.

For example If you say rgb (250,20,30), It's like what color you get if you add 250 of red, 20 of green and 30 of blue. By changing the Red, Green and Blue values from 0 to 250 you can have about more than 16 million different colors.

Color              Hex Value  RGB Value
#000000 rgb(0,0,0)
#ff0000 rgb(250,0,0)
#00ff00 rgb(0,250,0)
#0000ff rgb(0,0,250)
#ffffff rgb(250,250,250)

In Blogger template designer you'll often see these color codes which we will be learning later.

Template designer page  text color

But the problem is “Am I supposed to memorize all these hexadecimal notations or the RGB values to have my desired color wherever I want?” Absolutely not. For that you can use HTML color picker on W3Schools as a simple tool to find out the hexadecimal notations of your desired color and then you can simply paste it in your HTML code to have your color of interest.



No comments:

Post a Comment