← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 291 · 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 #005c00 the green part is the hex number 5c. What is it as a normal number?
  2. 2.🌈 Which colour of light is strongest in rgb(29, 207, 64)? (a) red (b) blue (c) green
  3. 3.🌈 Which colour is #ffff00? (a) magenta (b) yellow (c) bright green (d) white
  4. 4.🌈 Which colour of light is strongest in rgb(37, 205, 130)? (a) red (b) blue (c) green
  5. 5.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) F (c) Z (d) G
  6. 6.🌈 Which hex code is magenta? (a) #00ff00 (b) #0000ff (c) #ff00ff (d) #ffffff
  7. 7.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 6 (b) 4 (c) 2 (d) 3
  8. 8.🌈 Which colour of light is strongest in rgb(155, 35, 78)? (a) red (b) green (c) blue
  9. 9.🌈 Which colour is rgb(255, 255, 0)? (a) red (b) magenta (c) blue (d) yellow
  10. 10.🌈 Which colour of light is strongest in rgb(13, 166, 93)? (a) red (b) blue (c) green
  11. 11.🌈 Which colour of light is strongest in rgb(247, 104, 125)? (a) green (b) blue (c) red
  12. 12.🌈 Which colour is rgb(0, 255, 0)? (a) bright green (b) magenta (c) cyan (d) blue
  13. 13.🌈 Which hex code is white? (a) #ff0000 (b) #000000 (c) #00ffff (d) #ffffff
  14. 14.🌈 In #7b0000 the red part is the hex number 7b. What is it as a normal number?
  15. 15.🌈 In #000400 the green part is the hex number 04. What is it as a normal number?
  16. 16.🌈 Which colour is #ff0000? (a) bright green (b) cyan (c) yellow (d) red
  17. 17.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) blue (c) black (d) green
  18. 18.🌈 In #cc0000 the red part is the hex number cc. What is it as a normal number?
  19. 19.🌈 In #004700 the green part is the hex number 47. What is it as a normal number?
  20. 20.🌈 Which colour of light is strongest in rgb(124, 72, 152)? (a) blue (b) green (c) red
  21. 21.🌈 In #00bb00 the green part is the hex number bb. What is it as a normal number?
  22. 22.🌈 Which colour of light is strongest in rgb(128, 31, 153)? (a) blue (b) green (c) red
  23. 23.🌈 Which colour of light is strongest in rgb(161, 86, 121)? (a) green (b) red (c) blue
  24. 24.🌈 Which hex code is black? (a) #0000ff (b) #000000 (c) #ff0000 (d) #00ff00
  25. 25.🌈 Which colour is rgb(255, 0, 255)? (a) black (b) bright green (c) blue (d) magenta
  26. 26.🌈 Which colour is rgb(0, 0, 0)? (a) red (b) cyan (c) bright green (d) black
  27. 27.🌈 Which hex code is bright green? (a) #00ff00 (b) #ff0000 (c) #00ffff (d) #ff00ff
  28. 28.🌈 Which colour is #00ff00? (a) red (b) black (c) magenta (d) bright green
  29. 29.🌈 What is the biggest number one colour can have in rgb()? (a) 255 (b) 1000 (c) 100 (d) 99
  30. 30.🌈 In #001400 the green part is the hex number 14. What is it as a normal number?
  31. 31.🌈 In #00ec00 the green part is the hex number ec. What is it as a normal number?
  32. 32.🌈 Which hex code is red? (a) #ff0000 (b) #00ffff (c) #00ff00 (d) #ffff00
  33. 33.🌈 Which colour of light is strongest in rgb(242, 81, 58)? (a) green (b) red (c) blue
  34. 34.🌈 Which colour of light is strongest in rgb(95, 110, 210)? (a) green (b) red (c) blue
  35. 35.🌈 Which colour of light is strongest in rgb(96, 242, 18)? (a) red (b) blue (c) green
  36. 36.🌈 Which colour is rgb(0, 0, 255)? (a) blue (b) white (c) red (d) yellow
  37. 37.🌈 Which colour is #00ffff? (a) blue (b) red (c) cyan (d) magenta
  38. 38.🌈 Which colour of light is strongest in rgb(190, 96, 110)? (a) green (b) blue (c) red
  39. 39.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) blue (c) red (d) green
  40. 40.🌈 Which colour is #000000? (a) black (b) blue (c) magenta (d) yellow

Answer key

  1. 92
  2. green
  3. yellow
  4. green
  5. F
  6. #ff00ff
  7. 3
  8. red
  9. yellow
  10. green
  11. red
  12. bright green
  13. #ffffff
  14. 123
  15. 4
  16. red
  17. red
  18. 204
  19. 71
  20. blue
  21. 187
  22. blue
  23. red
  24. #000000
  25. magenta
  26. black
  27. #00ff00
  28. bright green
  29. 255
  30. 20
  31. 236
  32. #ff0000
  33. red
  34. blue
  35. green
  36. blue
  37. cyan
  38. red
  39. blue
  40. black

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