HTML and CSS Reference
In-Depth Information
Step two:
Convert each hex number into its decimal equivalent.
Now that you have the components separated, you can compute the value for
each from 0 to 255. Let's start with the hex number for the red component:
Now take t he leftmost
number and convert it to
its decimal value, and also
multiply it by 16.
12 * 16 = 192
192 + 12 = 204
Step three:
Now do this for the other two values.
Repeat the same method on the other two values. Here's what you should get:
To calculate 66, you have
(6 * 16) + 6 = 102.
To calculate 00, you have
(0 * 16) + 0 = 0.
Step four:
There is no step four; you're done!
That's it. Now you've got the numbers for each component and you know
exactly how much red, green, and blue go into the color. You can disassemble
any hex color in exactly the same way. Now let's see how you'll usually
determine web colors.
Search WWH ::

Custom Search