RGB
In HTMLHypertext Markup Language (HTML) is the standard markup language for creating web pages and web applications. With Cascading Style Sheets (CSS) and JavaScript, it forms a triad of cornerstone technologies... More, a color can be specified as an RGBIn HTML, a color can be specified as an RGB value, using this formula: rgb (red, green, blue) Each parameter (red, green, and blue) defines the intensity of the color... More value, using this formula: rgbIn HTML, a color can be specified as an RGB value, using this formula: rgb (red, green, blue) Each parameter (red, green, and blue) defines the intensity of the color... More (red, green, blue)
Each parameter (red, green, and blue) defines the intensity of the color between 0 and 255.
For example, rgb(255, 0, 0) is displayed as red, because red is set to its highest value (255) and the others are set to 0.
To display the color black, all color parameters must be set to 0, like this: rgb(0, 0, 0).
To display the color white, all color parameters must be set to 255, like this: rgb(255, 255, 255).