background-color - CSS | css background color opacity
Thebackground-colorCSS[1]propertysetsthebackgroundcolorofanelement.background-color:red;background-color:indigo;background-color:#bbff00;background-color:#bf0;background-color:#11ffee00;background-color:#1fe0;background-color:#11ffeeff;background-color:#1fef;background-color:rgb(255255128);background-color:rgb(117190218/0.5);background-color:hsl(5033%25%);background-color:hsl(5033%25%/0.75);background-color:currentcolor;background-color:transparent;background-color:inherit;background-color:i...
The background-color CSS[1] property sets the background color of an element.
background-color: red; background-color: indigo; background-color: #bbff00; background-color: #bf0; background-color: #11ffee00; background-color: #1fe0; background-color: #11ffeeff; background-color: #1fef; background-color: rgb(255 255 128); background-color: rgb(117 190 218 / 0.5); background-color: hsl(50 33% 25%); background-color: hsl(50 33% 25% / 0.75); background-color: currentcolor; background-color: transparent; background-color: inherit; background-color: initial; background-color: revert; background-color: revert-layer; background-color: unset;The background-color property is specified as a single <color> value.
Values[2]<color>[3]The uniform color of the background. It is rendered behind any background-image[4] that is specified, although the color will still be visible through any transparency in the image.
It is important to en...