The meaning of Web-safe color

Source: Internet
Author: User

Questions:Different platforms (Macs, PCs, etc.) have different color palettes, and different browsers have their own palettes. This means that for a picture, the image that appears in a Web browser on a Mac can vary greatly from the way it appears in the same browser on your PC. When you select a specific color, the browser tries to use the closest color in the palette that you use. If the selected color is not available in the browser, it attempts to recreate the color by dithering or by blending its own color. to solve the problem with the Web palette, people unanimously passed a set of web-safe colors that are similar across all browsers. Workaround:These colors use a color model in which each of the three primary colors (RGB) can be expressed using the corresponding 16 binary values 00, 33, 66, 99, CC, and FF . This basic web palette will serve as a standard for all Web browsers and platforms, and it includes the combined results of these 16 binary values. This means that our potential output includes 6 red tones, 6 shades of green, and 6 shades of blue. The result of the 6*6*6 gives 216 specific colors that can be safely applied to all the web without worrying about the changes in color between different applications. [1]It is not easy for us to convert the 10 binary value of a color into a 16 binary value, although we can learn to convert the RGB color to the mathematical principle of the 16 binary. However, we use the color conversion tools provided in most image editing or painting programs to make conversions easier. By using the Eyedropper tool, you can click on any desired color, and then view the color's RGB, HSB, CMYK, Lab, and final 16 binary values in the picker of the color. in HTML, you can modify the text and background color by editing the encoding according to your own wishes, and you can do this by making a color 16-based value. The code is fairly simple---add--<bgcolor= "#CC3333" > (dark Red Code) code after the <BODY> tag in the HTML file.

The meaning of Web-safe color

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.