In HTML, a color can be specified in the form of hsl(hue, saturation,…

2018

In HTML, a color can be specified in the form of hsl(hue, saturation, lightness), where hue is a degree on the color wheel from 0 to 360. What are the hue values representing red, green, and blue?

  1. A.

    0: Red, 120: Green, 240: Blue

  2. B.

    0: Red, 130: Green, 260: Blue

  3. C.

    100: Red, 200: Green, 300: Blue

  4. D.

    120: Red, 240: Green, 360: Blue

Attempted by 104 students.

Show answer & explanation

Correct answer: A

In the HSL color model, hue is measured in degrees from 0 to 360 on a circular color wheel. Standard HTML specifications define red as 0 degrees, green as 120 degrees, and blue as 240 degrees. These values correspond to the primary positions on the color spectrum used for digital display.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs