Do you know what RGBA is? RGBA stands for Red Green Blue Alpha. The red value is 30, green value is 140 and the blue value is 190. So we can conclude that the color RGBA value is 30 140 190 8. The first three value which are 30 140 190, it is the standard RGB values. Than the last value it is for Alpha. For Simply, RGBA is a way to declare a color in CSS which include the color of red, green and blue and then it as along with the alpha channel transparency support that enables alpha to blend and composite. The alpha channel sets the opacity or transparency value of the pixel value. In the RGB color space, it is composed of 11.8% red, 54.9% green and 74.5% blue. Than in the CMYK color space, it is composed of 84.2% cyan, 26.3% magenta, 0% yellow and 25.5% black. It has the hue angle of 198.8 degrees.
RGBA colors values are support in Chrome, Safari, Firefox and Opera. RGBA color values are an extension of RGB color values (30 140 190) along with an Alpha channel which determine the transparency and the opacity of the object. As we said in the explanation above that an RGBA color value is determine with RGB (red, green, blue, alpha) which are value 30 140 190 8. The alpha parameter is a number between fully transparent (0.0) and fully opaque (1.0). As we know that RGBA is the type of CSS color value which allow us to set a color and it is transparency or opacity. In this article we well share you the example of using the CSS RGBA color with opacity. Look at below.
– Background color: RGBA (255, 0, 0, 0.3) / Red with opacity.
– Background color: RGBA (0, 255, 0, 0.3) / Green with opacity.
– Background color: RGBA (0, 0, 255, 0.3) / Blue with opacity.
In this article we will also explain CSS legal color values. The colors in CSS colors can be determined by the following methods. Those methods are Hexadecimal colors, RGB colors, RGBA colors, HSL colors, HSLA colors and cross browser color names. For a little bit of explanation each them, please look at the text below.
– Hexadecimal colors.
In all major browsers, the hexadecimal colors values are available. The hexadecimal color is determined with: #RRGGBB. The RR for red, GG for green and BB for blue, which is the hexadecimal integers, specify the components of the color. Remember that all values must be between 00 and FF. For example, the #0000ff value is offered as blue. It is because the blue component is set to its highest value (ff) and the others are set to 00.
– RGB colors
In all major browsers, the RGB colors values are supported. RGB color value is determined with RGB (Red, green, blue).
– RGBA colors
RGBA colors values are support in Chrome, Safari, Firefox and Opera. RGBA colors contains of RGB values with following by Alpha channel.
– HSL colors
HSL stands for hue, saturation and lightness.
– HSLA colors
HSLA color values are an extension of HSL color values with an alpha channel that is determined the opacity of the object.
– cross browser color names
In the HTML and CSS color specification, there are about one hundred forty colors names are predefined or color browser color names.