๐ In CSS, a color can be specified by using a predefined color name.
๐ CSS/HTML supportย 140 standard color name . some are๐
Example๐
An RGB color value represents RED, GREEN, and BLUE light sources.
some of them are given below๐
2. CSSย RGB Colors
Example๐
3. CSSย HEX Colors
A hexadecimal color is specified with #RRGGBB, where the RR (red), GG (green), and BB (blue) hexadecimal integers identify the components of the color.
some of them are given below๐
Example๐
4. CSSย HSL Colors
๐ HSL stands for hue, saturation, and lightness.
HSL Value
๐ In CSS, a color can be specified using hue, saturation, and lightness (HSL) in the form:
hsl (hue,ย saturation,lightness)
๐ Hue is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, and 240 is blue.
๐ Saturation is a percentage value. 0% means a shade of gray, and 100% is the full color.
๐ Lightness is also a percentage. 0% is black, 50% is neither light or dark, 100% is white.
some of them are ๐
Example๐
5. RGBA Color Value
๐ RGBA color values are an extension of RGB color values with an alpha channel - which specifies the opacity for a color.
๐ An RGBA color value is specified with:
rgba(red,ย green,ย blue, alpha)
๐ An alpha parameter is a number between 0.0 (fully transparent) and 1.0 (not transparent at all)
Example๐
6. HSLA Value
๐ HSLA color values are an extension of HSL color values with an alpha channel - which specifies the opacity for a color.
๐ An HSLA color value is specified with:
hsla(hue,saturation,ย lightness, alpha)
๐ An alpha parameter is a number between 0.0 (fully transparent) and 1.0 (not transparent at all):
Example๐
That's all for the time being.
Please do the following if you enjoyed this thread:
[0] is the first element.
[1] is the second element.
[2] is the third element.
๐๐ต๐ฎ๐ป๐ด๐ถ๐ป๐ด ๐ฎ๐ป ๐๐ฟ๐ฟ๐ฎ๐ ๐๐น๐ฒ๐บ๐ฒ๐ป๐.
we can change the value of the elements in an array.
๐๐ ๐ฎ๐บ๐ฝ๐น๐ฒ: