← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 257 · 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(127, 92, 168)? (a) blue (b) red (c) green
  2. 2.🌈 Which colour is #000000? (a) yellow (b) cyan (c) white (d) black
  3. 3.🌈 Which colour is #00ff00? (a) yellow (b) white (c) black (d) bright green
  4. 4.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 2 (b) 3 (c) 4 (d) 6
  5. 5.🌈 Which colour is #ffff00? (a) black (b) cyan (c) magenta (d) yellow
  6. 6.🌈 In #900000 the red part is the hex number 90. What is it as a normal number?
  7. 7.🌈 Which colour is #ff00ff? (a) red (b) magenta (c) bright green (d) black
  8. 8.🌈 Which hex code is red? (a) #ff00ff (b) #ff0000 (c) #0000ff (d) #000000
  9. 9.🌈 In #rrggbb, which colour do the first two digits give? (a) black (b) red (c) green (d) blue
  10. 10.🌈 Which colour of light is strongest in rgb(193, 34, 104)? (a) blue (b) green (c) red
  11. 11.🌈 Which hex code is bright green? (a) #ffffff (b) #ff0000 (c) #ffff00 (d) #00ff00
  12. 12.🌈 What is the biggest number one colour can have in rgb()? (a) 255 (b) 1000 (c) 99 (d) 100
  13. 13.🌈 Which colour is rgb(0, 255, 255)? (a) black (b) white (c) blue (d) cyan
  14. 14.🌈 Which colour is rgb(0, 0, 255)? (a) magenta (b) blue (c) black (d) cyan
  15. 15.🌈 Which colour of light is strongest in rgb(39, 40, 216)? (a) red (b) green (c) blue
  16. 16.🌈 Which colour of light is strongest in rgb(17, 201, 19)? (a) blue (b) green (c) red
  17. 17.🌈 Which colour is #ff0000? (a) magenta (b) bright green (c) red (d) blue
  18. 18.🌈 Which hex code is magenta? (a) #000000 (b) #ffffff (c) #ff00ff (d) #00ff00
  19. 19.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) Z (c) G (d) F
  20. 20.🌈 Which colour is rgb(0, 0, 0)? (a) blue (b) cyan (c) red (d) black
  21. 21.🌈 Which colour of light is strongest in rgb(31, 223, 121)? (a) green (b) red (c) blue
  22. 22.🌈 Which colour is #0000ff? (a) black (b) yellow (c) blue (d) white
  23. 23.🌈 Which colour of light is strongest in rgb(220, 5, 62)? (a) red (b) blue (c) green
  24. 24.🌈 Which colour is #ffffff? (a) yellow (b) red (c) cyan (d) white
  25. 25.🌈 Which colour of light is strongest in rgb(64, 70, 188)? (a) red (b) green (c) blue
  26. 26.🌈 In #000079 the blue part is the hex number 79. What is it as a normal number?
  27. 27.🌈 Which colour is rgb(255, 255, 255)? (a) bright green (b) cyan (c) yellow (d) white
  28. 28.🌈 Which colour of light is strongest in rgb(167, 4, 88)? (a) green (b) blue (c) red
  29. 29.🌈 Which colour of light is strongest in rgb(239, 47, 73)? (a) green (b) blue (c) red
  30. 30.🌈 In #rrggbb, which colour do the last two digits give? (a) red (b) green (c) white (d) blue
  31. 31.🌈 In #890000 the red part is the hex number 89. What is it as a normal number?
  32. 32.🌈 Which colour of light is strongest in rgb(106, 114, 175)? (a) blue (b) red (c) green
  33. 33.🌈 In #770000 the red part is the hex number 77. What is it as a normal number?
  34. 34.🌈 Which colour is rgb(0, 255, 0)? (a) blue (b) yellow (c) bright green (d) cyan
  35. 35.🌈 Which colour of light is strongest in rgb(23, 243, 108)? (a) blue (b) green (c) red
  36. 36.🌈 Which hex code is yellow? (a) #00ffff (b) #00ff00 (c) #ff00ff (d) #ffff00
  37. 37.🌈 Which colour of light is strongest in rgb(208, 71, 43)? (a) red (b) green (c) blue
  38. 38.🌈 Which colour of light is strongest in rgb(245, 121, 8)? (a) blue (b) green (c) red
  39. 39.🌈 Which colour of light is strongest in rgb(233, 80, 73)? (a) green (b) blue (c) red
  40. 40.🌈 Which colour of light is strongest in rgb(121, 168, 74)? (a) blue (b) red (c) green

Answer key

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

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