Search the Whole World Here.,.,

HTML Colors RGB Value

In HTML, a color can also 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 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).

Experiment by mixing the RGB values below:

RedGreenBlue
170155165
rgb(170, 155, 165)

Example

ColorRGB
 rgb(255,0,0)
 rgb(255,255,0)
 rgb(0,255,0)
 rgb(0,255,255)
 rgb(0,0,255)
Try it Yourself »
Shades of gray are often defined using equal values for all the 3 light sources:

Example

ColorRGB
 rgb(0,0,0)
 rgb(90,90,90)
 rgb(128,128,128)
 rgb(200,200,200)
 rgb(255,255,255)
Try it Yourself »


EmoticonEmoticon