A Grip On CSS Color Codes

CSS Color Codes are often a mystery to noviceBlue: 0 = 00
HTML/CSS developers. #FF0000 ... What might thatResult: #FF0000
mean?To make all these Color Codes work for you, you
CSS Color Codes are actually hexadecimal values of amust embedd them into your CSS statement like
specific color. If you've worked in Photoshop's colorthis:style="color:#FF0000;"
picker, you must have seen these codes.The alternative way is to specify a RGB value lake
The alternative to hexadecimal color codes are RGBthis:style="color:rgb(255,0,0);"and the easiest way to
color codes. RGB stands for Red Green Blue. So ifspecify color using CSS is this:style="color:red;"
you want to specify a specific color, you'll set eachThe last example for setting the color by color name
color value separately, for example R:255 G:0 B:0.has some limitations though: There are only 16 colors
Bear in mind that the minimum value is 0, andthat you can use: aqua, black, blue, fuchsia, gray,
maximum value is 255, so in this example we havegreen, lime, maroon, navy, olive, purple, red, silver,
specified red color.teal, white, and yellow.
Hexadecimal color values also function this way, so ifAnd the final tip for hexadecimal CSS Color Codes is
you want to specify a color, you will combine RGBthat you can abbreviate. Hexadecimal code can be
values converted into hexadecimal numbers like this:shortened if the pairs have same values. For instance,
Red: 255 = FFif you want to specify a red color, you'd write
Green: 0 = 00#FF0000.