Sunday, 6 November 2016

HTML Color Codes

HTML Color codes in Hexidecimal, make sure you use Safe codes in your HTML codes.

HTML Colors are measured in Hexidecimal values, separated into three colors. RED, GREEN, & BLUE. In the following format:
#(RED,RED) (GREEN,GREEN) (BLUE,BLUE)[#RRGGBB]

   When selecting a color in HTML, you will almost always use Hexidecimal values for your html color codes. Hexidecimal is simply a different numbering system which ranges from 0-15; whereas the decimal numbering system ranges from 0-9.

Instead of saying 15, we use the letter F... So you could say it these hexidecimal codes range from 0 --> F ; like this:
0 1 2 3 4 5 6 7 8 9 A B C D E F

In HTML color codes, you use these hex color codes to determine the amount of each color (Red, Green, Blue) to have in your final color.
Format: #RRGGBB

So if you wanted a pure blue, then youd use the highest possible value in the Blue column[BB], and the lowest in the red and green. So now you know the highest value is an F, so plug in *FF* for the last two values... and 00 for RED, and 00 for GREEN.
PURE BLUE----> #0000FF
PURE GREEN---> #00FF00
PURE RED-----> #FF0000

And of course, for the html color codes for black and white, just think about it... Black is lack of any color, so it would be all 0s, and white is just the opposite... all Fs

PURE BLACK--> #000000
PURE WHIRE--> #FFFFFF

From there just mix and match until you find the perfect colors for any part of your website.

No comments:

Post a Comment