A Table of 140 HTML colors with names and codes (string, HEX, rgb) For example, green would look like this: rgb (0, 255, 0) Īll of these values are suitable for other situations where color is needed, for example, in background-color. Only the intensity is set here by numbers 0 from 255, where 0 is the lowest intensity, 255 is the highest. In the RGB palette, the color is mixed in a similar way by mixing the intensity of red, green, and blue colors.
#CSS COLOR CODES WHITE HTML CODE#
Then for green, the HEX code will be: #00FF00 RGB palette of HTML colors Note: To display these Symbols you need to have the font that supports this Unicode Range. These symbols are available in Unicode range U+2654 to U+265F. To get the red color, you need to set the maximum value for the byte responsible for the red color, and for the rest - the minimum: #FF0000. There are around 12 Symbols that are needed to create a Chessboard in HTML. 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.