Challenge - 5 Problems
Hex Color Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding Hex Color Codes
What color will the CSS rule
color: #FF0000; produce when applied to text?Attempts:
2 left
💡 Hint
The first two digits in a hex color code represent the red component.
✗ Incorrect
The hex color #FF0000 means full red (FF), no green (00), and no blue (00), so the color is bright red.
📝 Syntax
intermediate2:00remaining
Valid Hex Color Syntax
Which of the following CSS hex color codes is invalid and will cause the browser to ignore the color?
Attempts:
2 left
💡 Hint
Hex digits can only be 0-9 and A-F.
✗ Incorrect
Option A contains the letter 'G', which is not a valid hex digit. Valid hex digits are 0-9 and A-F.
❓ rendering
advanced2:00remaining
Visual Result of Short Hex Color
What color will the CSS rule
background-color: #0F0; produce on a webpage?Attempts:
2 left
💡 Hint
Short hex colors repeat each digit to form the full 6-digit code.
✗ Incorrect
The short hex #0F0 expands to #00FF00, which is bright green.
❓ selector
advanced2:00remaining
CSS Selector and Hex Color Application
Given the CSS rule
p.highlight { color: #800080; }, what color will the text inside a paragraph with class highlight be?CSS
<p class="highlight">Sample text</p>Attempts:
2 left
💡 Hint
The hex code #800080 is a common purple color.
✗ Incorrect
The hex color #800080 is a shade of purple, so the text will appear purple.
❓ accessibility
expert2:00remaining
Hex Color Contrast for Accessibility
Which hex color combination provides the best contrast for text readability on a white background?
Attempts:
2 left
💡 Hint
High contrast means very different brightness between text and background.
✗ Incorrect
Black (#000000) on white (#FFFFFF) provides the highest contrast, making text easiest to read for most users.