← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 300 · 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(98, 251, 117)? (a) green (b) red (c) blue
  2. 2.🌈 Which colour of light is strongest in rgb(159, 91, 122)? (a) green (b) red (c) blue
  3. 3.🌈 Which colour of light is strongest in rgb(213, 3, 118)? (a) green (b) red (c) blue
  4. 4.🌈 Which colour is rgb(255, 255, 255)? (a) bright green (b) magenta (c) white (d) cyan
  5. 5.🌈 Which colour of light is strongest in rgb(107, 93, 198)? (a) red (b) green (c) blue
  6. 6.🌈 Which hex code is black? (a) #00ff00 (b) #ffffff (c) #ff0000 (d) #000000
  7. 7.🌈 Which colour is #000000? (a) bright green (b) yellow (c) black (d) white
  8. 8.🌈 In #000062 the blue part is the hex number 62. What is it as a normal number?
  9. 9.🌈 Which colour is #ff0000? (a) red (b) magenta (c) yellow (d) bright green
  10. 10.🌈 Which colour is #00ffff? (a) yellow (b) cyan (c) magenta (d) black
  11. 11.🌈 Which colour of light is strongest in rgb(190, 5, 21)? (a) green (b) red (c) blue
  12. 12.🌈 Which colour is #ffffff? (a) blue (b) white (c) black (d) bright green
  13. 13.🌈 Which colour is #00ff00? (a) red (b) bright green (c) yellow (d) blue
  14. 14.🌈 Which colour is rgb(255, 255, 0)? (a) bright green (b) black (c) blue (d) yellow
  15. 15.🌈 In #000089 the blue part is the hex number 89. What is it as a normal number?
  16. 16.🌈 Which hex code is blue? (a) #0000ff (b) #000000 (c) #ffffff (d) #00ff00
  17. 17.🌈 In #rrggbb, which colour do the last two digits give? (a) green (b) red (c) white (d) blue
  18. 18.🌈 Which colour is rgb(255, 0, 255)? (a) blue (b) red (c) magenta (d) bright green
  19. 19.🌈 Which hex code is magenta? (a) #ffff00 (b) #0000ff (c) #00ffff (d) #ff00ff
  20. 20.🌈 Which colour is #ff00ff? (a) black (b) bright green (c) magenta (d) white
  21. 21.🌈 Which colour is rgb(0, 0, 0)? (a) bright green (b) white (c) blue (d) black
  22. 22.🌈 Which colour of light is strongest in rgb(84, 15, 236)? (a) red (b) green (c) blue
  23. 23.🌈 Which colour is #0000ff? (a) red (b) black (c) blue (d) white
  24. 24.🌈 Which hex code is cyan? (a) #ff00ff (b) #00ffff (c) #0000ff (d) #ffff00
  25. 25.🌈 Which hex code is white? (a) #000000 (b) #ffffff (c) #00ffff (d) #ffff00
  26. 26.🌈 Which hex code is bright green? (a) #ffff00 (b) #00ffff (c) #ffffff (d) #00ff00
  27. 27.🌈 Which colour of light is strongest in rgb(73, 79, 244)? (a) green (b) red (c) blue
  28. 28.🌈 Which hex code is red? (a) #000000 (b) #ffff00 (c) #ff0000 (d) #0000ff
  29. 29.🌈 Which colour is rgb(0, 255, 255)? (a) magenta (b) cyan (c) black (d) yellow
  30. 30.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 100 (c) 1000 (d) 255
  31. 31.🌈 In #110000 the red part is the hex number 11. What is it as a normal number?
  32. 32.🌈 Which colour of light is strongest in rgb(196, 75, 43)? (a) red (b) blue (c) green
  33. 33.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 6 (b) 2 (c) 3 (d) 4
  34. 34.🌈 Which colour of light is strongest in rgb(27, 33, 251)? (a) red (b) green (c) blue
  35. 35.🌈 Hex digits go 0 to 9, then A to which letter? (a) Z (b) J (c) G (d) F
  36. 36.🌈 Which colour of light is strongest in rgb(39, 28, 215)? (a) green (b) red (c) blue
  37. 37.🌈 Which colour is rgb(0, 0, 255)? (a) yellow (b) bright green (c) blue (d) black
  38. 38.🌈 Which colour of light is strongest in rgb(252, 16, 55)? (a) green (b) red (c) blue
  39. 39.🌈 Which colour of light is strongest in rgb(171, 125, 54)? (a) blue (b) green (c) red
  40. 40.🌈 In #710000 the red part is the hex number 71. What is it as a normal number?

Answer key

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

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