@TOC R   G   B

Red, green and blue

0 0 0 bias to color

Background :red; background:#FF0000; Background: RGB (0, 255);

background:red; Is to use the corresponding English words directly;

background:#FF0000; The color is expressed in hexadecimal notation (background:#F00);

If the first and second digits after the # sign are the same, you can abbreviate the third and fourth digits, the fifth and sixth digits, and so on

Background: RGB (0, 255); Color is expressed in hexadecimal and hexadecimal;

background:#ff0000; And background: RGB (0, 255); In fact, the different writing of the same type is a combination of three primary colors in the computer

In the hexadecimal system, F stands for 16. 16 x 16=256 Indicates that there are 256 colors in a hue (0-255). The computer starts counting from 0

The higher the value of that hue the closer you get to 255 or F(FF) the more obvious the hue is

If the three values are equal, the gray gets darker as it gets closer to 0

#000 Black # FFF White # FF0 Yellow # F0F Purple # 0FF Cyan 0→F hue gradually becomes stronger