← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 25 · 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(92, 196, 60)? (a) red (b) green (c) blue
  2. 2.🌈 Which colour is rgb(255, 255, 255)? (a) magenta (b) white (c) black (d) yellow
  3. 3.🌈 Which colour is rgb(0, 255, 0)? (a) red (b) yellow (c) bright green (d) white
  4. 4.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) Z (c) J (d) G
  5. 5.🌈 Which colour is #ffffff? (a) blue (b) red (c) white (d) black
  6. 6.🌈 Which colour of light is strongest in rgb(132, 174, 18)? (a) red (b) green (c) blue
  7. 7.🌈 Which colour of light is strongest in rgb(73, 57, 174)? (a) blue (b) red (c) green
  8. 8.🌈 Which colour is rgb(0, 255, 255)? (a) red (b) yellow (c) bright green (d) cyan
  9. 9.🌈 Which hex code is white? (a) #000000 (b) #ffffff (c) #00ffff (d) #00ff00
  10. 10.🌈 In #590000 the red part is the hex number 59. What is it as a normal number?
  11. 11.🌈 Which colour is #00ffff? (a) white (b) bright green (c) yellow (d) cyan
  12. 12.🌈 In #310000 the red part is the hex number 31. What is it as a normal number?
  13. 13.🌈 Which colour of light is strongest in rgb(128, 240, 69)? (a) blue (b) red (c) green
  14. 14.🌈 In #rrggbb, which colour do the first two digits give? (a) black (b) red (c) green (d) blue
  15. 15.🌈 Which colour of light is strongest in rgb(157, 60, 81)? (a) red (b) green (c) blue
  16. 16.🌈 Which hex code is bright green? (a) #ff0000 (b) #ff00ff (c) #ffffff (d) #00ff00
  17. 17.🌈 In #d00000 the red part is the hex number d0. What is it as a normal number?
  18. 18.🌈 Which colour is #0000ff? (a) magenta (b) red (c) black (d) blue
  19. 19.🌈 In #000053 the blue part is the hex number 53. What is it as a normal number?
  20. 20.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 1000 (c) 100 (d) 255
  21. 21.🌈 Which colour of light is strongest in rgb(222, 115, 106)? (a) green (b) blue (c) red
  22. 22.🌈 Which colour of light is strongest in rgb(115, 218, 32)? (a) red (b) blue (c) green
  23. 23.🌈 Which hex code is cyan? (a) #000000 (b) #ffffff (c) #00ffff (d) #00ff00
  24. 24.🌈 Which colour is #ff00ff? (a) blue (b) black (c) magenta (d) red
  25. 25.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) blue (c) green (d) red
  26. 26.🌈 Which hex code is yellow? (a) #ffff00 (b) #00ffff (c) #00ff00 (d) #ff00ff
  27. 27.🌈 In #450000 the red part is the hex number 45. What is it as a normal number?
  28. 28.🌈 Which hex code is red? (a) #ffff00 (b) #ff0000 (c) #00ffff (d) #ffffff
  29. 29.🌈 Which colour of light is strongest in rgb(137, 9, 247)? (a) green (b) red (c) blue
  30. 30.🌈 In #00d400 the green part is the hex number d4. What is it as a normal number?
  31. 31.🌈 In #0000cb the blue part is the hex number cb. What is it as a normal number?
  32. 32.🌈 In #b50000 the red part is the hex number b5. What is it as a normal number?
  33. 33.🌈 Which colour is rgb(0, 0, 255)? (a) cyan (b) blue (c) red (d) yellow
  34. 34.🌈 Which colour is rgb(255, 255, 0)? (a) yellow (b) magenta (c) bright green (d) cyan
  35. 35.🌈 Which colour is rgb(255, 0, 255)? (a) magenta (b) cyan (c) blue (d) yellow
  36. 36.🌈 In #010000 the red part is the hex number 01. What is it as a normal number?
  37. 37.🌈 In #000013 the blue part is the hex number 13. What is it as a normal number?
  38. 38.🌈 Which colour is #000000? (a) bright green (b) black (c) blue (d) yellow
  39. 39.🌈 In #00000d the blue part is the hex number 0d. What is it as a normal number?
  40. 40.🌈 Which colour of light is strongest in rgb(252, 27, 25)? (a) blue (b) green (c) red

Answer key

  1. green
  2. white
  3. bright green
  4. F
  5. white
  6. green
  7. blue
  8. cyan
  9. #ffffff
  10. 89
  11. cyan
  12. 49
  13. green
  14. red
  15. red
  16. #00ff00
  17. 208
  18. blue
  19. 83
  20. 255
  21. red
  22. green
  23. #00ffff
  24. magenta
  25. blue
  26. #ffff00
  27. 69
  28. #ff0000
  29. blue
  30. 212
  31. 203
  32. 181
  33. blue
  34. yellow
  35. magenta
  36. 1
  37. 19
  38. black
  39. 13
  40. red

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