CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS rgba() Function

CSS rgba() Function

 

 

The rgba() function is used to define the colors using the Red Green Blue Alpha (RGBA) model. It is an extension of RGB color values with an alpha channel which is basically used for specifying the opacity of the color.

 

Syntax:-

 

Its syntax is:- rgba(red, green, blue, alpha)

 

Further Explanation:-

 

Value Description
red Defines the intensity of red. Its value ranges between 0 and 255, or between 0% and 100%.
green Defines the intensity of green. Its value ranges between 0 and 255, or between 0% and 100%.
blue Defines the intensity of blue. Its value ranges between 0 and 255, or between 0% and 100%
alpha Defines the opacity between 0 and 1.

Code Explanation

All Tutorials related to CSS Functions

All Sections related to CSS