Colors Flashcards
What is the shorthand syntax for hexadecimal colors in CSS?
Hexadecimal notation for RGB with a six-digit sequence (e.g., #RRGGBB).
What does the range â0-9, A-Fâ represent in hexadecimal color values?
The range used to represent the values for each of the primary colors (red, green, blue) in hexadecimal format.
What does a six-digit hexadecimal color value translate to in RGB?
It is translated to RGB numerical ranges from 0-255 for red, green, and blue.
How is alpha transparency represented in a hexadecimal color value?
Alpha transparency is represented by two additional hexadecimal digits (e.g., #000000BF).
What is the hexadecimal representation for 0% alpha transparency?
00000000.
What is the hexadecimal representation for 75% alpha transparency?
000000BF.
What is the function used to define RGB colors in CSS?
rgb() color function.
What range of values can be used in the rgb() function for each color component?
Values from 0 to 255.
What range of values can be used in the rgb() function using percentages?
Percentages from 0% to 100%.
What is the purpose of the rgba() function in CSS?
It defines colors with an alpha (transparency) value, which can be expressed as a percentage or decimal.
What is the CSS syntax for defining a color with 50% alpha using rgba()?
rgba(0, 0, 0, 50%).
What is the decimal equivalent of 50% alpha transparency in the rgba() function?
rgba(0, 0, 0, 0.5).