← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 244 · 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.🌈 In #rrggbb, which colour do the first two digits give? (a) blue (b) red (c) black (d) green
  2. 2.🌈 Which colour of light is strongest in rgb(193, 73, 22)? (a) green (b) blue (c) red
  3. 3.🌈 In #5e0000 the red part is the hex number 5e. What is it as a normal number?
  4. 4.🌈 Which colour is #000000? (a) black (b) bright green (c) white (d) cyan
  5. 5.🌈 In #009500 the green part is the hex number 95. What is it as a normal number?
  6. 6.🌈 Which colour is rgb(255, 255, 255)? (a) red (b) cyan (c) white (d) blue
  7. 7.🌈 What is the biggest number one colour can have in rgb()? (a) 1000 (b) 99 (c) 100 (d) 255
  8. 8.🌈 Which colour is #0000ff? (a) cyan (b) blue (c) white (d) black
  9. 9.🌈 Which hex code is magenta? (a) #00ff00 (b) #000000 (c) #0000ff (d) #ff00ff
  10. 10.🌈 Which colour is rgb(255, 255, 0)? (a) yellow (b) bright green (c) red (d) cyan
  11. 11.🌈 Which colour is rgb(255, 0, 255)? (a) magenta (b) cyan (c) black (d) white
  12. 12.🌈 Which colour of light is strongest in rgb(84, 108, 158)? (a) red (b) blue (c) green
  13. 13.🌈 Which colour is #ffffff? (a) cyan (b) yellow (c) white (d) magenta
  14. 14.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) G (c) Z (d) F
  15. 15.🌈 Which hex code is red? (a) #0000ff (b) #ffffff (c) #ff00ff (d) #ff0000
  16. 16.🌈 Which hex code is blue? (a) #0000ff (b) #ffffff (c) #ff00ff (d) #00ff00
  17. 17.🌈 In #0000fb the blue part is the hex number fb. What is it as a normal number?
  18. 18.🌈 In #610000 the red part is the hex number 61. What is it as a normal number?
  19. 19.🌈 Which colour is #ffff00? (a) blue (b) yellow (c) bright green (d) red
  20. 20.🌈 Which hex code is white? (a) #ffff00 (b) #ff00ff (c) #ff0000 (d) #ffffff
  21. 21.🌈 In #004a00 the green part is the hex number 4a. What is it as a normal number?
  22. 22.🌈 In #rrggbb, which colour do the last two digits give? (a) red (b) green (c) white (d) blue
  23. 23.🌈 Which colour is #00ffff? (a) bright green (b) cyan (c) blue (d) magenta
  24. 24.🌈 Which colour is rgb(255, 0, 0)? (a) blue (b) red (c) magenta (d) yellow
  25. 25.🌈 Which colour of light is strongest in rgb(198, 116, 33)? (a) blue (b) green (c) red
  26. 26.🌈 Which colour is rgb(0, 0, 0)? (a) white (b) yellow (c) blue (d) black
  27. 27.🌈 Which colour of light is strongest in rgb(95, 241, 10)? (a) red (b) green (c) blue
  28. 28.🌈 Which colour of light is strongest in rgb(96, 205, 116)? (a) green (b) red (c) blue
  29. 29.🌈 Which hex code is black? (a) #000000 (b) #00ffff (c) #ff00ff (d) #ff0000
  30. 30.🌈 In #00de00 the green part is the hex number de. What is it as a normal number?
  31. 31.🌈 Which colour is rgb(0, 0, 255)? (a) bright green (b) cyan (c) white (d) blue
  32. 32.🌈 Which hex code is yellow? (a) #ffff00 (b) #ff00ff (c) #000000 (d) #ff0000
  33. 33.🌈 Which hex code is cyan? (a) #00ffff (b) #ffff00 (c) #ffffff (d) #00ff00
  34. 34.🌈 Which colour is #ff00ff? (a) magenta (b) bright green (c) white (d) yellow
  35. 35.🌈 In #e40000 the red part is the hex number e4. What is it as a normal number?
  36. 36.🌈 Which colour is #00ff00? (a) red (b) yellow (c) blue (d) bright green
  37. 37.🌈 In #00a900 the green part is the hex number a9. What is it as a normal number?
  38. 38.🌈 In #0000f3 the blue part is the hex number f3. What is it as a normal number?
  39. 39.🌈 Which colour of light is strongest in rgb(79, 245, 8)? (a) blue (b) green (c) red
  40. 40.🌈 Which colour is rgb(0, 255, 255)? (a) bright green (b) cyan (c) white (d) red

Answer key

  1. red
  2. red
  3. 94
  4. black
  5. 149
  6. white
  7. 255
  8. blue
  9. #ff00ff
  10. yellow
  11. magenta
  12. blue
  13. white
  14. F
  15. #ff0000
  16. #0000ff
  17. 251
  18. 97
  19. yellow
  20. #ffffff
  21. 74
  22. blue
  23. cyan
  24. red
  25. red
  26. black
  27. green
  28. green
  29. #000000
  30. 222
  31. blue
  32. #ffff00
  33. #00ffff
  34. magenta
  35. 228
  36. bright green
  37. 169
  38. 243
  39. green
  40. cyan

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