← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 131 · 40 questions
TalentJR

Code tip (Red, green, blue): rgb(red, green, blue): each from 0 to 255. #rrggbb: the same three numbers in hex. Hex digits: 0–9, then a = 10, b = 11, c = 12, d = 13, e = 14, f = 15. A pair = 16 × first digit + second digit: ff = 16 × 15 + 15 = 255.

NameDateTime takenScore ___ / 40
  1. 1.🌈 Which colour of light is strongest in rgb(159, 139, 54)? (a) green (b) blue (c) red
  2. 2.🌈 Which hex code is yellow? (a) #0000ff (b) #ff00ff (c) #ffff00 (d) #ffffff
  3. 3.🌈 Which hex code is magenta? (a) #000000 (b) #0000ff (c) #ff0000 (d) #ff00ff
  4. 4.🌈 Which colour is rgb(255, 255, 255)? (a) magenta (b) white (c) blue (d) bright green
  5. 5.🌈 Which colour is #00ff00? (a) bright green (b) red (c) blue (d) white
  6. 6.🌈 Which colour is #ffff00? (a) black (b) blue (c) white (d) yellow
  7. 7.🌈 Which colour is rgb(0, 255, 0)? (a) bright green (b) white (c) black (d) cyan
  8. 8.🌈 Which colour of light is strongest in rgb(85, 179, 28)? (a) blue (b) red (c) green
  9. 9.🌈 In #006e00 the green part is the hex number 6e. What is it as a normal number?
  10. 10.🌈 Which colour is rgb(255, 255, 0)? (a) bright green (b) red (c) black (d) yellow
  11. 11.🌈 Which hex code is bright green? (a) #ffffff (b) #00ff00 (c) #0000ff (d) #ff00ff
  12. 12.🌈 In #0000ea the blue part is the hex number ea. What is it as a normal number?
  13. 13.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) blue (c) green (d) red
  14. 14.🌈 Which colour is #ff00ff? (a) cyan (b) magenta (c) white (d) blue
  15. 15.🌈 In #500000 the red part is the hex number 50. What is it as a normal number?
  16. 16.🌈 Which colour of light is strongest in rgb(253, 23, 61)? (a) green (b) blue (c) red
  17. 17.🌈 Which colour is #ffffff? (a) bright green (b) cyan (c) blue (d) white
  18. 18.🌈 Which colour of light is strongest in rgb(13, 40, 207)? (a) green (b) red (c) blue
  19. 19.🌈 Which colour of light is strongest in rgb(124, 236, 136)? (a) red (b) green (c) blue
  20. 20.🌈 In #0000bc the blue part is the hex number bc. What is it as a normal number?
  21. 21.🌈 Which hex code is red? (a) #ffff00 (b) #0000ff (c) #ff0000 (d) #00ff00
  22. 22.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) black (c) blue (d) green
  23. 23.🌈 Which colour of light is strongest in rgb(20, 67, 157)? (a) red (b) blue (c) green
  24. 24.🌈 Which colour of light is strongest in rgb(174, 110, 52)? (a) green (b) blue (c) red
  25. 25.🌈 Which colour of light is strongest in rgb(134, 10, 196)? (a) green (b) red (c) blue
  26. 26.🌈 Which hex code is white? (a) #00ffff (b) #ffffff (c) #ff00ff (d) #00ff00
  27. 27.🌈 Which colour of light is strongest in rgb(0, 239, 7)? (a) red (b) green (c) blue
  28. 28.🌈 Which colour is #00ffff? (a) cyan (b) blue (c) yellow (d) magenta
  29. 29.🌈 In #a10000 the red part is the hex number a1. What is it as a normal number?
  30. 30.🌈 In #00005d the blue part is the hex number 5d. What is it as a normal number?
  31. 31.🌈 Which hex code is blue? (a) #ffff00 (b) #00ff00 (c) #ffffff (d) #0000ff
  32. 32.🌈 In #870000 the red part is the hex number 87. What is it as a normal number?
  33. 33.🌈 Which colour of light is strongest in rgb(181, 75, 12)? (a) red (b) blue (c) green
  34. 34.🌈 Which colour of light is strongest in rgb(218, 99, 106)? (a) red (b) green (c) blue
  35. 35.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 99 (c) 255 (d) 1000
  36. 36.🌈 Which colour is #000000? (a) white (b) black (c) cyan (d) blue
  37. 37.🌈 In #3b0000 the red part is the hex number 3b. What is it as a normal number?
  38. 38.🌈 In #004700 the green part is the hex number 47. What is it as a normal number?
  39. 39.🌈 In #00000e the blue part is the hex number 0e. What is it as a normal number?
  40. 40.🌈 In #e90000 the red part is the hex number e9. What is it as a normal number?

Answer key

  1. red
  2. #ffff00
  3. #ff00ff
  4. white
  5. bright green
  6. yellow
  7. bright green
  8. green
  9. 110
  10. yellow
  11. #00ff00
  12. 234
  13. blue
  14. magenta
  15. 80
  16. red
  17. white
  18. blue
  19. green
  20. 188
  21. #ff0000
  22. red
  23. blue
  24. red
  25. blue
  26. #ffffff
  27. green
  28. cyan
  29. 161
  30. 93
  31. #0000ff
  32. 135
  33. red
  34. red
  35. 255
  36. black
  37. 59
  38. 71
  39. 14
  40. 233

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids