In practical art, there is often a saying that "look at the color from a distance and look at the flowers up close, look at the color first and then the flowers, and seven out of seven colors are three out of three flowers".
This also shows that in any design, color plays the first role in conveying information through visual stimulation. Therefore, only by having a good grasp of the basic knowledge of color can you be comfortable in web design.
In order to make the following web page color matching analysis easier to understand, let's first understand the RGB mode and HSB mode of color.
■ RGB
RGB stands for red, green, and blue, also known as the three primary colors of light. The English are R (Red), G (Green), and B (Blue). In computers, the so-called "how much" of RGB refers to brightness, and is represented by integers.
Normally, RGB each has 256 levels of brightness, expressed numerically from 0, 1, 2 to 255. Although the highest number is 255, 0 is also one of the values, so there are 256 levels in total. According to calculations, a total of 256 levels of RGB colors can be combined to produce about 16.78 million colors, that is, 256×256×256=16777216. It is also often referred to as 16 million colors or tens of millions of colors. Also called 24-bit color (2 to the 24th power).
For a single R or G or B, when the value is 0, it means that this color does not emit light; if it is 255, the color is the highest brightness. Therefore, when the three colors of RGB light are emitted to their strongest brightness, the RGB value of pure white is 255,255,255. The RGB value of black on the screen is 0,0,0. R means that only red exists and is the brightest, and neither G nor B emit light. So the reddest value is 255,0,0. In the same way, the greenest is 0,255,0; and the bluest is 0,0,255. Yellow is more special. It is obtained by adding red and green, which is 255, 255, 0.
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
Color is divided into three factors: hue, saturation, and lightness. In English, it is H (Hue), S (Saturation) and B (Brightness). High saturation and bright colors. A color with low saturation is close to gray. High brightness results in bright colors, low brightness results in dark colors, the highest brightness results in pure white, and the lowest brightness results in pure black. Generally, light colors have lower saturation and higher brightness, while dark colors have higher saturation and lower brightness.