RGB Color

Category:CSS Properties

RGB Color

The rgb() function specifies colors using the Red-green-blue (RGB) model. An RGB color value is specified with three parameters: rgb(red, green, blue). Each parameter defines the intensity of that color and can be an integer between 0 and 255 or a percentage value from 0% to 100%.


RGB Color

Setting the text color of a <h1> to crimson.

h1 {
  Color: rgb(220, 20, 60);


rgb(red, green, blue);


Additional Information

For more information, see http://www.w3schools.com/cssref/pr_text_color.asp

Found a bug in the documentation? Let us know at documentation@code.org