Challenge - 5 Problems
Hue Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
What does the
adjust-hue function do in Sass?Choose the best description of what
adjust-hue does to a color in Sass.Attempts:
2 left
💡 Hint
Think about how colors are represented on a wheel and what rotating the hue means.
✗ Incorrect
The adjust-hue function rotates the hue of a color by the specified degrees, moving it around the color wheel. It does not affect brightness or saturation.
📝 Syntax
intermediate2:00remaining
What is the output color of this Sass code?
Given the Sass code below, what is the resulting color in hex format?
$base-color: #ff0000; $result: adjust-hue($base-color, 120deg);
SASS
$base-color: #ff0000; $result: adjust-hue($base-color, 120deg);
Attempts:
2 left
💡 Hint
Red rotated by 120 degrees on the color wheel becomes which primary color?
✗ Incorrect
Rotating red (#ff0000) by 120 degrees on the hue wheel results in green (#00ff00).
❓ rendering
advanced2:00remaining
Which Sass code snippet produces a blue color by rotating red's hue?
You want to create a blue color by rotating the hue of red (#ff0000). Which code snippet correctly does this?
Attempts:
2 left
💡 Hint
Blue is 240 degrees away from red on the hue wheel.
✗ Incorrect
Rotating red (#ff0000) by 240 degrees on the hue wheel results in blue (#0000ff).
❓ selector
advanced1:30remaining
Which CSS selector targets elements with a background color adjusted by
adjust-hue in Sass?Given this Sass code, which CSS selector will match the elements styled with the adjusted hue background?
.btn {
background-color: adjust-hue(#ff0000, 180deg);
}Attempts:
2 left
💡 Hint
Look at the class name used in the Sass code.
✗ Incorrect
The Sass code styles elements with the class btn. So the selector .btn matches those elements.
❓ accessibility
expert2:30remaining
How does using
adjust-hue affect color contrast for accessibility?If you use
adjust-hue to rotate a color's hue, what should you check to maintain good accessibility?Attempts:
2 left
💡 Hint
Think about how color contrast affects people with vision impairments.
✗ Incorrect
Rotating hue changes the color but may reduce contrast. Always verify contrast ratios to keep text readable and accessible.