Tuesday, 30 July 2013

HTML color codes

 HTML color codes

Color Codes
hexadecimal colour codesWhen I first started building websites in 2001, I tried my hardest to venture away from that disgusting collection of colors. Sure, I could enter whatever hex color I wanted in my html code and cross my fingers that it would look the same on more than one computer. Sometimes it worked. Sometimes it didn't. That really nice warm gray background I created at work would be a dirty pink on my computer at home. Color chart
Back then I couldn't understand why the web safe colors had to be that particular selection of hues. I mean really, how many different shades of fluorescent green do we need on the Web? Of course, the fact of the matter is that web safe colors were not picked for designers in the first place. There are a lot of technical reasons why we had to start out with that nauseating palette, but fortunately since then browsers and computer monitors have improved at lightening speed. Today everyone can see just about any color you want to serve up to them. HTML Tutorial
So does the html color chart serve any purpose today? I'm thinking probably not, at least not in its current form. What designers mostly need is a guide that offers different color schemes, along with the related hex codes that can be easily copied and pasted into an html editor. Now that we can pick nearly any color imaginable for our websites, the challenge is to find new and interesting ways to combine hues, shades, and tints - all in ways that were virtually unthinkable just five or six years ago.
The combination of Red, Green, and Blue values from 0 to 255, gives more than 16 million different colors (256 x 256 x 256). HTML color codes
If you look at the color table below, you will see the result of varying the red light from 0 to 255, while keeping the green and blue light at zero.
To see the full list of color mixes when RED varies from 0 to 255, click on one of the HEX or RGB values below.
HTML Color code Picker
#000000 rgb(0,0,0)
#080000 rgb(8,0,0)
#100000 rgb(16,0,0)
#180000 rgb(24,0,0)
#200000 rgb(32,0,0)
#280000 rgb(40,0,0)
#300000 rgb(48,0,0)
#380000 rgb(56,0,0)
#400000 rgb(64,0,0)
#480000 rgb(72,0,0)
#500000 rgb(80,0,0)
#580000 rgb(88,0,0)
#600000 rgb(96,0,0)
#680000 rgb(104,0,0)
#700000 rgb(112,0,0)
#780000 rgb(120,0,0)
#800000 rgb(128,0,0)
#880000 rgb(136,0,0)
#900000 rgb(144,0,0)
#980000 rgb(152,0,0)
#A00000 rgb(160,0,0)
#A80000 rgb(168,0,0)
#B00000 rgb(176,0,0)
#B80000 rgb(184,0,0)
#C00000 rgb(192,0,0)
#C80000 rgb(200,0,0)
#D00000 rgb(208,0,0)
#D80000 rgb(216,0,0)
#E00000 rgb(224,0,0)
#E80000 rgb(232,0,0)
#F00000 rgb(240,0,0)
#F80000 rgb(248,0,0)
#FF0000 rgb(255,0,0) 

Shades of Gray

Gray colors are created by using an equal amount of power to all of the light sources.
To make it easier for you to select the correct shade, we have created a table of gray shades for you:
Gray Shades Color HEX Color RGB
#000000 rgb(0,0,0)
#080808 rgb(8,8,8)
#101010 rgb(16,16,16)
#181818 rgb(24,24,24)
#202020 rgb(32,32,32)
#282828 rgb(40,40,40)
#303030 rgb(48,48,48)
#383838 rgb(56,56,56)
#404040 rgb(64,64,64)
#484848 rgb(72,72,72)
#505050 rgb(80,80,80)
#585858 rgb(88,88,88)
#606060 rgb(96,96,96)
#686868 rgb(104,104,104)
#707070 rgb(112,112,112)
#787878 rgb(120,120,120)
#808080 rgb(128,128,128)
#888888 rgb(136,136,136)
#909090 rgb(144,144,144)
#989898 rgb(152,152,152)
#A0A0A0 rgb(160,160,160)
#A8A8A8 rgb(168,168,168)
#B0B0B0 rgb(176,176,176)
#B8B8B8 rgb(184,184,184)
#C0C0C0 rgb(192,192,192)
#C8C8C8 rgb(200,200,200)
#D0D0D0 rgb(208,208,208)
#D8D8D8 rgb(216,216,216)
#E0E0E0 rgb(224,224,224)
#E8E8E8 rgb(232,232,232)
#F0F0F0 rgb(240,240,240)
#F8F8F8 rgb(248,248,248)
#FFFFFF rgb(255,255,255)


Web Safe Colors?

Color code chart list
Some years ago, when computers supported max 256 different colors, a list of 216 “Web Safe Colors” was suggested as a Web standard, reserving 40 fixed system colors.
The 216 cross-browser color palette was created to ensure that all computers would display the colors correctly when running a 256 color palette.
This is not important today, since most computers can display millions of different colors. Anyway, here is the list:
000000 000033 000066 000099 0000CC 0000FF
003300 003333 003366 003399 0033CC 0033FF
006600 006633 006666 006699 0066CC 0066FF
009900 009933 009966 009999 0099CC 0099FF
00CC00 00CC33 00CC66 00CC99 00CCCC 00CCFF
00FF00 00FF33 00FF66 00FF99 00FFCC 00FFFF
330000 330033 330066 330099 3300CC 3300FF
333300 333333 333366 333399 3333CC 3333FF
336600 336633 336666 336699 3366CC 3366FF
339900 339933 339966 339999 3399CC 3399FF
33CC00 33CC33 33CC66 33CC99 33CCCC 33CCFF
33FF00 33FF33 33FF66 33FF99 33FFCC 33FFFF
660000 660033 660066 660099 6600CC 6600FF
663300 663333 663366 663399 6633CC 6633FF
666600 666633 666666 666699 6666CC 6666FF
669900 669933 669966 669999 6699CC 6699FF
66CC00 66CC33 66CC66 66CC99 66CCCC 66CCFF
66FF00 66FF33 66FF66 66FF99 66FFCC 66FFFF
990000 990033 990066 990099 9900CC 9900FF
993300 993333 993366 993399 9933CC 9933FF
996600 996633 996666 996699 9966CC 9966FF
999900 999933 999966 999999 9999CC 9999FF
99CC00 99CC33 99CC66 99CC99 99CCCC 99CCFF
99FF00 99FF33 99FF66 99FF99 99FFCC 99FFFF
CC0000 CC0033 CC0066 CC0099 CC00CC CC00FF
CC3300 CC3333 CC3366 CC3399 CC33CC CC33FF
CC6600 CC6633 CC6666 CC6699 CC66CC CC66FF
CC9900 CC9933 CC9966 CC9999 CC99CC CC99FF
CCCC00 CCCC33 CCCC66 CCCC99 CCCCCC CCCCFF
CCFF00 CCFF33 CCFF66 CCFF99 CCFFCC CCFFFF
FF0000 FF0033 FF0066 FF0099 FF00CC FF00FF
FF3300 FF3333 FF3366 FF3399 FF33CC FF33FF
FF6600 FF6633 FF6666 FF6699 FF66CC FF66FF
FF9900 FF9933 FF9966 FF9999 FF99CC FF99FF
FFCC00 FFCC33 FFCC66 FFCC99 FFCCCC FFCCFF
FFFF00 FFFF33 FFFF66 FFFF99 FFFFCC FFFFFF
You need to know the significance of colors on a webpage and this will give you a much better idea of the impact that this has on the site itself as well as the visitors. You are able to initially learn about the different schemes by using a color wheel which can tell you about coordination and also provide you with assistance when selecting a color palette.HTML colour code
This wheel will indicate colors in three diverse categories, which are primary, secondary and tertiary. Basically, the wheel will help you to determine ways to select good colors in order to deliver a highly effective output. Many colors can be used on your website, but it's important to choose the right combinations. The primary ones will be unique and can't be designed by combining another shade.
HTML color codes
You can find three primary colors, which are red, blue and yellow and if these are used together they will form secondary shades. The three colors on the wheel can be displayed in HTML using certain codes ad will be the important features of the website designs. Any individual who is knowledgeable about the process of color theory could easily master how to incorporate these colors into any design over time.
Color picker

Color Values

HTML colors are defined using a hexadecimal notation (HEX) for the combination of Red, Green, and Blue color values (RGB).
The lowest value that can be given to one of the light sources is 0 (in HEX: 00). The highest value is 255 (in HEX: FF).
HEX values are specified as 3 pairs of two-digit numbers, starting with a # sign.

Color Values

Color Color HEX Color RGB
#000000 rgb(0,0,0)
#FF0000 rgb(255,0,0)
#00FF00 rgb(0,255,0)
#0000FF rgb(0,0,255)
#FFFF00 rgb(255,255,0)
#00FFFF rgb(0,255,255)
#FF00FF rgb(255,0,255)
#C0C0C0 rgb(192,192,192)
#FFFFFF rgb(255,255,255)

Tuesday, 9 July 2013

HTML COLOR CODE

With hex codes, a specific color is represented by a single code, which contains a combination of six letters and numbers. To change the three RGB values above into a single hex code, we'll need to make a few conversions. First take your first RGB number and divide that by 16. You can drop the remainder for now and just write down the whole number. This will be the first character in your hex code.

Introduction to the Hexadecimal System
In mathematics, the hexadecimal or simply hex is a numeral system with a base of 16 usually written using the symbols 0-9 and A-F. The numbers 0-9 have the same value as in the decimal system but starting with the letter A, the value keeps going up one up to the value of 16. A is worth 10, B is worth 11 and so forth until you get to F which is worth 16.
How the HTML Color Codes are put together
HTML Color codes are composed of six hex numbers that represent a possible 16.7 million color combinations. The hex color codes are built on the RGB color model. R stands for red, G for green, and B for blue. With your typical html code that looks like this: #FFFFFF it breaks down as follows. The first two hex digits #FFFFFF represent 'red'. The second set of two hex digits #FFFFFF represent the color green. The third and final set of two hex digits #FFFFFF represent the color blue.
A brief overview of the RGB model
The RGB color model, like the HTML color model can represent a total of 16.7 million colors. By varying the among of red, green, and blue, one can come up with any of 16.7 million colors. Each RGB value is represented by a number from 0 to 255. So a set of RGB values for the color white for instance, would look like this: 255, 255, 255.
Putting HTML and RGB Together
We've already established the hex numeral system with it's number range between 0 to 16. Now, when you combine two hex numbers, you can represent any number between 0 and 255. As you can see, RGB and HTML color codes represent the same color model.
Websafe Color Palette
Years ago, monitors could only display 256 colors. These monitors were still popular when HTML was first put together. As such, it was necessary to put together a list of colors that web designers could be sure any given monitor could properly display. Web safe colors are the result. The websafe color palette is made up of 216 colors.
It is always good practice to pick standard colors across the board, but it is no longer absolutely necessary to stick with web safe colors. Doing so now is more for purposes of holding to standard than it is for necessity. One exception to this rule may be developing websites for cellphones and PDA's. Having said that, these devices are now surpassing this barrier as well.
#FFFFFF represents the color white. #000000 represents the color black with every other color in between. I hope you now have a much better idea of why HTML color codes are look the way they do.


HTML Color Codes are 6 characters wide and look like "#80FF12", and are really 3 2-digit hex numbers that represent Red, Green, and Blue. Ok... I just lost a good portion of the crowd didn't I? Let's break it down into things that are easy to understand.
How to describe a color using numbers? There are a lot of ways to specify a particular color, but one of the ways that's used with computers is to specify the values of Red, Green, and Blue to mix together to achieve the desired color. As we vary the amounts of Red, Green, and Blue we can create most any color you desire.
How does this relate to computers? Computer displays, TVs, and other "projected light" display devices use pixels to display what you see on the screen and the color value for those pixels is specified in a RGB (Red, Green, Blue) value. For example if your monitor is set at 1024 x 768 resolution, then there are 768 lines (from top to bottom) on your screen, and each line has 1024 pixels or little dots in it. Each of those pixels or little dots is actually made of three smaller dots or light sources: a red one, a green one, and a blue one.
Ink works differently. Computer printers generally specify color as a four (or more) color "reflective" ink value made up of Yellow, Magenta, Cyan, and Black which is abbreviated as YMCK. The computer uses various formulas to convert the RGB values to CMYK values so that you can print what you see on your screen accurately.
How does the computer represent a RGB color value? HTML Color Code RGB values are stored as 3 separate values (one for Red, one for Green, and one for Blue) between 0 and 255. If you count the 0 as a value, then that's a total of 256 possible values. When you combine the Red, Green, and Blue values together to represent a color you get a possibility of 16.7 million colors (256 x 256 x 256). That's a lot of colors and most people consider this to be "true" color because it can represent most photographs and images accurately and naturally.
What is a Hex number? Your computer stores information as single ones and zeros. Each of these 0s and 1s is a single value called a "bit". When we combine 8 of these "bits"
together it makes a "byte". So therefore a byte is 8 bits.
We can count in various "bases". In regular everyday life, we use base 10 or "decimal". Base 10 uses these digits to represent a number: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. If we use the ones and zeros I just talked about, we're talking about just two possible values for each digit, 0 or 1, so this would be called base 2 or "binary". In computers, we use base 16, or hexadecimal (hex for short) a lot because it packs more values into a single space. Hex uses the following digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. To represent the number 128 in decimal or base 10 requires 3 digits (128), in binary it requires 8 digits (10000000), and in hex or base 16 it requires just 2 digits (80). So by using hex values in programming, HTML, and other computer related things, we actually save storage space and gain efficiency.
If you're familiar with RGB, you know that a specific color is represented by a set of three different numbers: one for red (R), one for green (G), and one for blue (B). For example, the RGB values for a dark, grassy green might be:
R=77
B=131
G=50

R - 77 / 16 = 4.812 = 4 (first character in code)
Next take the remainder and multiply that by 16. Be sure to round up the final number. This will be the second character in your hex code.
.812 x 16 = 12.99 = 13 (second character in code)
But wait...13 can't be a single character in a hex color code. So we need to use a letter code instead. Numbers between 10 and 15 need to be replaced with the letters A through F (A=10, B=11, C=12, etc). In my example, that means the second character I came up with (13) will now be the letter "D." That makes the first character in my hex code look like this: 4D. That's better. Repeat the whole process above for each RGB number, and presto, you've converted RGB to Hex!


Article Source: http://EzineArticles.com/1090408How does this relate to HTML color codes? HTML colors codes are made up of 3 sets of hex numbers, one for Red, one for Green, and one for Blue.
For example:
000000 is black (0's for all three colors)
FFFFFF is white (255's for all three colors)
FF0000 is all RED (255 for Red, 0 green, 0 blue)
00FF00 is all GREEN (0 Red, 255 green, 0 blue)
0000FF is all Blue (0 red, 0 green, 255 blue)
FFFF00 is Yellow (255 red, 255 green, and 0 blue)
808080 is a gray (128 red, 128 green, and 125 blue)
Generally in HTML, you also put a "#" in front of the color code, but this is not necessary when you specify all 6 digits. If you make profiles for mySpace.com, leave off the "#" too because they filter them and it won't display the color correctly if you use the "#".
To convert between Decimal and Hex values, use the calculator that comes with Microsoft Windows. Open the calculator and select View and then Scientific. You'll see more buttons and controls on the calculator now. To convert a number from Hex to Dec, click on "Hex", key in the number, and then click "Dec".