THE WORLD'S LARGEST WEB DEVELOPER SITE

Colors RGB


RGB Calculator


 
#ff0000
hsl(0, 100%, 50%)


R:
G:
B:

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.

Example

<style>
div {
    background-color: rgb(0, 191, 255);
    color: rgb(255, 255, 255);
}
</style>

Try It Yourself »