Everywhere in the library, Wherever it is required to set color, it can be mentioned in “hex Code” , “rgba values” or by writing “Color-Names”.
HTML Colors are defined using a hexadecimal notation (HEX) for the combination of Red, Green, and Blue color values (RGB).
HEX values are specified as 3 pairs of two-digit numbers, starting with a # sign. Some of examples are.
|Color Names||Hex Values||Color RGB|
We can give any of hex values, Color Names, or RGB values. In the Example below we see the usage of all three format of color input.
You can make an element Transparent by setting color in form of rgba(). “a” in rgba stands, for alpha. This feature allows us to specify an opacity value for the color.
Eg: rgba(255, 0, 0, 0.2)
Color names are web-safe colors that are defined in HTML5 and CSS Color specifications. There are 16 basic Color names and 130 more. Some of them are,
“Aqua”, “Chocolate”, “Coral”, “Cyan”, “DimGrey”, “Lavender”, “Peru”, “RoyalGreen”, “SeaGreen”, “SlateGrey”
To see the list of all colors, https://www.w3schools.com/colors/colors_names.asp
Below we will set color names to set colors of various properties.