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.

To make the following webpage color analysis easier to understand, let's first understandColor 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.

The numbers of pure white are r255, g255, and b255. The black values are r0, G0, and B0.
The red values are r255, G0, and B0. The green values are r0, g255, and B0.
The Blue values are r0, G0, and b255. The yellow values are r255, g255, and B0.

The RGB mode is the physical color mode of the monitor. This means that no matter what color mode is used in the software, as long as it is displayed on the monitor, the image will eventually appear in RGB mode.

■ HSB
  
Is color divided into three factors: color, saturation, brightness. H (Hue), S (saturation) B (brightness) saturation is high color. Low saturation colors are close to Gray. High Brightness, bright colors, low brightness, and dimmed colors. The highest brightness is pure white, and the lowest brightness is pure black. Generally, the light color saturation is low, the brightness is high, and the dark color saturation is high and the brightness is low.

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.