Skip to content
HTML.ONE
Home Colours

RGB and RGBA Colours

RGB specifies red, green and blue channels; alpha controls transparency. Modern CSS rgb() supports slash-separated alpha.

Example

color: rgb(37 99 235);
background-color: rgb(37 99 235 / 50%);

Further reference

MDN CSS color values