So it’s the same as in the drawing class - to get any color you just need to mix red, blue, and green. To obtain black, the intensity of all colors should be minimal: #000000. For example, to get white, you need to “mix” three primary colors with maximum intensity: #FFFFFF. The value 00 is the lowest intensity, FF is the highest. Each byte is responsible for the intensity of one of the three primary colors: the first is responsible for the intensity of red, the second for green, and the third for blue: The HEX code always starts with a # followed by a 3-byte hexadecimal number (6 digits in total). If you need a color that is not represented there, you will need to use a hexadecimal format (HEX code) or RGB. The standard set of HTML colors consists of 140 different values. The only limitation is that we have to choose a color from several predefined options. The name of the color is relatively simple.
The value for the color property can be set in three main ways: Using an RGB or HEX color code in HTML you can change the color of the text, background, url, font, table or the whole page.