Tutorials References Exercises Videos Menu
Free Website Get Certified Upgrade

Colors RGB

RGB Calculator

hsl(0, 100%, 50%)


RGB Colors

RGB color values are supported in all browsers.

An RGB color value is specified with: rgb(red, green, blue).

Each parameter (red, green, and blue) defines the intensity of the color as an integer between 0 and 255.

For example, rgb(0, 0, 255) is rendered as blue, because the blue parameter is set to its highest value (255) and the others are set to 0.

Try it Yourself

RGB color values are supported in all major browsers.


div {
    background-color: rgb(0, 191, 255);
    color: rgb(255, 255, 255);
Try It Yourself »