![]() ![]() ![]() ![]() However, now with most people using at least 24-bit, moving to 36-bit, they are less important, with more people using hex or decimal colors.įrom 2005, most general use browsers have given some of the colors names. Try out our Color Generator that calculates all of the variations and provides code to copy/paste into an app See the CSS Variables documentation for more. Background-color values can be expressed using rgb such as rgb (255,255,255), rgb (0,0,0), and rgb (255,0,0). Background-color values can be expressed in hexadecimal values such as FFFFFF, 000000, and FF0000. Web safe colors used to be really important when 8-bit was the standard color setting for most users. The value in the CSS background-color property can be expressed as a hexadecimal value, rgb value, or as a named color. Where a is the level of red, b the level green and c the level blue (must all be a number between 0 and 255).ĭ is the transparency of the color, and it must be a value between 0 and 1 (ex : 0.7).īelow is a table showing the 216 web safe colors. If you want valid HTML or CSS, use the HEX values instead.ĬSS3 introduced the possibility to use RGBA (RGB with Alpha) colors. W3C have listed only 16 valid color names: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |