← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 205 · 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 hex code is bright green? (a) #ff0000 (b) #ff00ff (c) #0000ff (d) #00ff00
  2. 2.🌈 Which colour is #ffffff? (a) bright green (b) cyan (c) white (d) red
  3. 3.🌈 Which colour of light is strongest in rgb(73, 214, 121)? (a) blue (b) green (c) red
  4. 4.🌈 Which hex code is cyan? (a) #ffff00 (b) #00ffff (c) #0000ff (d) #00ff00
  5. 5.🌈 Which colour is #ffff00? (a) red (b) yellow (c) cyan (d) white
  6. 6.🌈 Which hex code is black? (a) #ffffff (b) #0000ff (c) #ff00ff (d) #000000
  7. 7.🌈 Which colour is rgb(255, 255, 0)? (a) yellow (b) blue (c) red (d) black
  8. 8.🌈 Which colour is rgb(255, 0, 255)? (a) yellow (b) white (c) magenta (d) cyan
  9. 9.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 1000 (c) 255 (d) 99
  10. 10.🌈 Which colour is #000000? (a) yellow (b) bright green (c) cyan (d) black
  11. 11.🌈 In #rrggbb, which colour do the first two digits give? (a) black (b) green (c) blue (d) red
  12. 12.🌈 Which colour is #00ff00? (a) black (b) blue (c) bright green (d) yellow
  13. 13.🌈 Which colour is rgb(0, 255, 255)? (a) red (b) yellow (c) blue (d) cyan
  14. 14.🌈 Which colour is #00ffff? (a) cyan (b) white (c) red (d) black
  15. 15.🌈 In #000021 the blue part is the hex number 21. What is it as a normal number?
  16. 16.🌈 Which colour is #0000ff? (a) black (b) blue (c) cyan (d) red
  17. 17.🌈 Which colour of light is strongest in rgb(200, 40, 11)? (a) red (b) green (c) blue
  18. 18.🌈 Which colour of light is strongest in rgb(196, 13, 140)? (a) red (b) green (c) blue
  19. 19.🌈 In #rrggbb, which colour do the last two digits give? (a) red (b) green (c) white (d) blue
  20. 20.🌈 Which colour of light is strongest in rgb(168, 25, 86)? (a) red (b) blue (c) green
  21. 21.🌈 Which colour is rgb(255, 255, 255)? (a) blue (b) bright green (c) magenta (d) white
  22. 22.🌈 In #00f700 the green part is the hex number f7. What is it as a normal number?
  23. 23.🌈 Which colour of light is strongest in rgb(12, 160, 43)? (a) blue (b) red (c) green
  24. 24.🌈 In #960000 the red part is the hex number 96. What is it as a normal number?
  25. 25.🌈 Which hex code is blue? (a) #0000ff (b) #00ffff (c) #00ff00 (d) #ffffff
  26. 26.🌈 Which colour is #ff0000? (a) black (b) magenta (c) bright green (d) red
  27. 27.🌈 Which colour of light is strongest in rgb(24, 161, 29)? (a) blue (b) red (c) green
  28. 28.🌈 Hex digits go 0 to 9, then A to which letter? (a) G (b) J (c) Z (d) F
  29. 29.🌈 Which colour is rgb(0, 255, 0)? (a) cyan (b) yellow (c) bright green (d) black
  30. 30.🌈 Which colour of light is strongest in rgb(114, 183, 101)? (a) green (b) red (c) blue
  31. 31.🌈 In #00ea00 the green part is the hex number ea. What is it as a normal number?
  32. 32.🌈 Which colour of light is strongest in rgb(169, 77, 0)? (a) green (b) blue (c) red
  33. 33.🌈 Which colour of light is strongest in rgb(40, 83, 204)? (a) red (b) blue (c) green
  34. 34.🌈 In #000035 the blue part is the hex number 35. What is it as a normal number?
  35. 35.🌈 Which colour is rgb(0, 0, 255)? (a) blue (b) white (c) black (d) red
  36. 36.🌈 Which hex code is red? (a) #ffff00 (b) #ffffff (c) #ff0000 (d) #00ffff
  37. 37.🌈 Which colour is rgb(255, 0, 0)? (a) red (b) yellow (c) bright green (d) blue
  38. 38.🌈 In #0000fc the blue part is the hex number fc. What is it as a normal number?
  39. 39.🌈 In #00c100 the green part is the hex number c1. What is it as a normal number?
  40. 40.🌈 In #f00000 the red part is the hex number f0. What is it as a normal number?

Answer key

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

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