Results 1 to 3 of 3
01-21-2014, 01:28 PM #1
How the hex values work with color HTMLI hope you all find this usefull!This is actually really simple to grasp and understand. Now remember the "primary colors" red, blue, and yellow? They are "Primary" because no other colors can make them. Example: Red and Blue make Purple. But no two colors combined can make red or blue. With me? Now, the hex values work in a similar way. Except, it uses Red, Green, and Blue. Why? Well green consists of yellow. Meaning actually 4 colors are used in this hex system because green has yellow in it. So red, green, yellow, and blue are used. Hex uses 6 digits to determine a color. I will explain more about that later. There are 16 digits for color values. They are
0 1 2 3 4 5 6 7 8 9 A B C D E F0 is the smallest representation of a number. Meaning it's pretty much no color at all. While F is 15 times times the intensity of 0. The rest of the digits are in order of intensity. Double 0 (00) is zero hue. While double F (FF) is equal to pure color. Example, 000000 is black, while ffffff is white. This color representation is done three times, once for red, once for green, and once for blue, in that order. Put the three, two-digit, codes together and you get a 6-digit hex code. The hex code is just a representation of the red, green, and blue intensity, in that order. The computer creates the three intensities, mashes them together, and you get a single shade of color.
Here are a few examples,
YellowNow let's look at that for a second. The Red and Green are fully lit. (Both at max "FF") and blue is at 00. By mashing Green and red together the red cancels out the blue in green and all that is left is yellow. Pretty cool right?
OrangeRed is fully lit. Quite a bit of green and no blue.
GreenThere is quite a bit of red and max green. And once again no blue.
I hope this helped guys and if you have any questions let me know.
Last edited by Element 115; 01-21-2014 at 01:40 PM. Reason: grammatical error
01-21-2014, 02:35 PM #2
- Join Date
- Oct 2013
- Being Grumpy
Okay, I get it. So if I take red (#FF0000) OR With alpha, (#FFFF0000"), it get's darker each time you go? Nice share and this is very useful.
01-21-2014, 02:39 PM #3
Last edited by Element 115; 01-21-2014 at 02:40 PM.