Which of the following is a valid RGB color specification?

Learn web design with our comprehensive test guide. Improve your skills with flashcards and multiple choice questions. Each question includes hints and explanations. Get ready to ace your exam!

Multiple Choice

Which of the following is a valid RGB color specification?

Explanation:
RGB color values use a function that takes three numeric 0–255 values in order: red, green, and blue. The line rgb(255,99,71) fits exactly that format, giving concrete intensities for each channel to produce a color. The other options don’t, for a simple reason: the first uses color names inside the rgb() function, but rgb() requires numbers, not words. The second uses a hex notation starting with #, which is a different color specification method and not an rgb() function. The last option uses hsl(), which expresses color with hue, saturation, and lightness, not red, green, and blue. So rgb(255,99,71) is the valid RGB specification.

RGB color values use a function that takes three numeric 0–255 values in order: red, green, and blue. The line rgb(255,99,71) fits exactly that format, giving concrete intensities for each channel to produce a color. The other options don’t, for a simple reason: the first uses color names inside the rgb() function, but rgb() requires numbers, not words. The second uses a hex notation starting with #, which is a different color specification method and not an rgb() function. The last option uses hsl(), which expresses color with hue, saturation, and lightness, not red, green, and blue. So rgb(255,99,71) is the valid RGB specification.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy