← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 233 · 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 is #00ffff? (a) bright green (b) white (c) cyan (d) yellow
  2. 2.🌈 Which colour is rgb(255, 0, 0)? (a) blue (b) white (c) cyan (d) red
  3. 3.🌈 What is the biggest number one colour can have in rgb()? (a) 1000 (b) 99 (c) 255 (d) 100
  4. 4.🌈 Which colour of light is strongest in rgb(169, 80, 38)? (a) green (b) red (c) blue
  5. 5.🌈 Which colour is rgb(255, 255, 0)? (a) red (b) magenta (c) yellow (d) black
  6. 6.🌈 Which colour is rgb(255, 0, 255)? (a) cyan (b) magenta (c) red (d) bright green
  7. 7.🌈 Which colour is #0000ff? (a) black (b) red (c) cyan (d) blue
  8. 8.🌈 Which colour is #ffff00? (a) magenta (b) blue (c) white (d) yellow
  9. 9.🌈 Which hex code is red? (a) #ff00ff (b) #ffff00 (c) #ff0000 (d) #000000
  10. 10.🌈 In #00ad00 the green part is the hex number ad. What is it as a normal number?
  11. 11.🌈 Which colour of light is strongest in rgb(36, 164, 25)? (a) blue (b) red (c) green
  12. 12.🌈 Which colour is rgb(0, 255, 255)? (a) black (b) red (c) cyan (d) yellow
  13. 13.🌈 Which colour is #ff0000? (a) red (b) bright green (c) white (d) black
  14. 14.🌈 Which colour of light is strongest in rgb(153, 66, 42)? (a) blue (b) green (c) red
  15. 15.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) green (c) black (d) blue
  16. 16.🌈 Hex digits go 0 to 9, then A to which letter? (a) Z (b) J (c) F (d) G
  17. 17.🌈 In #000032 the blue part is the hex number 32. What is it as a normal number?
  18. 18.🌈 Which colour is rgb(0, 0, 255)? (a) blue (b) bright green (c) red (d) magenta
  19. 19.🌈 Which hex code is cyan? (a) #ff0000 (b) #ff00ff (c) #00ff00 (d) #00ffff
  20. 20.🌈 Which colour of light is strongest in rgb(36, 105, 156)? (a) red (b) blue (c) green
  21. 21.🌈 Which colour is rgb(0, 0, 0)? (a) cyan (b) white (c) black (d) red
  22. 22.🌈 In #00d200 the green part is the hex number d2. What is it as a normal number?
  23. 23.🌈 Which colour of light is strongest in rgb(162, 51, 77)? (a) red (b) blue (c) green
  24. 24.🌈 In #000064 the blue part is the hex number 64. What is it as a normal number?
  25. 25.🌈 In #ab0000 the red part is the hex number ab. What is it as a normal number?
  26. 26.🌈 Which colour of light is strongest in rgb(103, 99, 166)? (a) red (b) blue (c) green
  27. 27.🌈 Which colour is #00ff00? (a) blue (b) bright green (c) red (d) black
  28. 28.🌈 Which colour of light is strongest in rgb(23, 245, 62)? (a) green (b) red (c) blue
  29. 29.🌈 Which hex code is yellow? (a) #ffff00 (b) #ffffff (c) #ff0000 (d) #ff00ff
  30. 30.🌈 In #000086 the blue part is the hex number 86. What is it as a normal number?
  31. 31.🌈 Which colour of light is strongest in rgb(23, 36, 198)? (a) green (b) red (c) blue
  32. 32.🌈 Which colour is rgb(255, 255, 255)? (a) black (b) cyan (c) magenta (d) white
  33. 33.🌈 Which hex code is black? (a) #000000 (b) #ffff00 (c) #ff0000 (d) #00ff00
  34. 34.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) red (c) green (d) blue
  35. 35.🌈 Which colour is rgb(0, 255, 0)? (a) white (b) red (c) cyan (d) bright green
  36. 36.🌈 In #00002a the blue part is the hex number 2a. What is it as a normal number?
  37. 37.🌈 Which colour of light is strongest in rgb(130, 69, 168)? (a) red (b) blue (c) green
  38. 38.🌈 In #008e00 the green part is the hex number 8e. What is it as a normal number?
  39. 39.🌈 In #00006a the blue part is the hex number 6a. What is it as a normal number?
  40. 40.🌈 In #ff0000 the red part is the hex number ff. What is it as a normal number?

Answer key

  1. cyan
  2. red
  3. 255
  4. red
  5. yellow
  6. magenta
  7. blue
  8. yellow
  9. #ff0000
  10. 173
  11. green
  12. cyan
  13. red
  14. red
  15. red
  16. F
  17. 50
  18. blue
  19. #00ffff
  20. blue
  21. black
  22. 210
  23. red
  24. 100
  25. 171
  26. blue
  27. bright green
  28. green
  29. #ffff00
  30. 134
  31. blue
  32. white
  33. #000000
  34. blue
  35. bright green
  36. 42
  37. blue
  38. 142
  39. 106
  40. 255

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