0
0
SASSmarkup~20 mins

Adjust-hue for color rotation in SASS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Hue Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What does the adjust-hue function do in Sass?
Choose the best description of what adjust-hue does to a color in Sass.
AIt rotates the color's hue angle by a specified number of degrees on the color wheel.
BIt changes the brightness of the color by a given percentage.
CIt changes the saturation of the color by a given percentage.
DIt converts the color to grayscale.
Attempts:
2 left
💡 Hint
Think about how colors are represented on a wheel and what rotating the hue means.
📝 Syntax
intermediate
2: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);
A#0000ff
B#ffff00
C#ff00ff
D#00ff00
Attempts:
2 left
💡 Hint
Red rotated by 120 degrees on the color wheel becomes which primary color?
rendering
advanced
2: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?
A$color: adjust-hue(#ff0000, 60deg);
B$color: adjust-hue(#ff0000, 120deg);
C$color: adjust-hue(#ff0000, 240deg);
D$color: adjust-hue(#ff0000, -120deg);
Attempts:
2 left
💡 Hint
Blue is 240 degrees away from red on the hue wheel.
selector
advanced
1: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);
}
A.btn:hover
B.btn
C#btn
Dbutton.btn
Attempts:
2 left
💡 Hint
Look at the class name used in the Sass code.
accessibility
expert
2: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?
AEnsure the rotated color still has sufficient contrast ratio against the background for readability.
BOnly check the hue angle; contrast is not affected by hue changes.
CAdjust-hue automatically improves contrast, so no checks are needed.
DUse adjust-hue only on text colors, not backgrounds.
Attempts:
2 left
💡 Hint
Think about how color contrast affects people with vision impairments.