Color scheme for web pages: RGB and HSB

Source: Internet
Author: User
In practical art, there is often a saying that "looking at the color is closer to looking at the flowers, looking at the color first and then watching the flowers, seven points of color and three points of flowers.
This shows that in any design, colors play the first role of information communication in visual stimulation. Therefore, a good grasp of the basic color knowledge can be easily achieved in the web design.

In order to make the following webpage color analysis easier to understand, we will first understand the color RGB mode and HSB mode.

■ RGB

RGB indicates the Red Green and Blue colors, which are also called the three primary colors. In English, they are R (Red), G (Green), and B (Blue). On the computer, the so-called "number" of RGB refers to the brightness, which is expressed by an integer.
In general, RGB has a brightness of 256, which is represented in numbers from 0, 1, 2 to 255. Although the maximum number is 255, 0 is also one of the numerical values, so a total of 256 levels. According to the calculation, 256-level RGB colors can combine about 16.78 million colors, that is, 256 × 256 × 256 = 16777216. It is also referred to as "16 million colors" or "10 Million Colors. It is also known as the 24-digit color (the power of 2 ).
For separate R, G, or B, when the value is 0, this color does not emit light; if it is 255, the color is the highest brightness. Therefore, when three colors of RGB light reach the highest brightness, the RGB value of pure white is 255,255,255. The black RGB values on the screen are 0, 0, and 0. R, which means that only red exists and the brightness is the strongest. Neither G nor B emits light. Therefore, the redmost value is, 0, and 0. Similarly, the greenest value is 0,255, 0, and the blue value is 255. The yellow color is special. It is marked by 255,255 and 0 in red and green. (For detailed analysis, see "detailed explanation of color patterns in computer art design" written by Zhao Peng.)

The numbers of pure white are R255, G255, and B255. The black value is R0, G0,

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.