← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 44 · 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(104, 129, 152)? (a) blue (b) green (c) red
  2. 2.🌈 Which hex code is blue? (a) #00ffff (b) #0000ff (c) #ffff00 (d) #ff00ff
  3. 3.🌈 Which colour is #00ff00? (a) bright green (b) white (c) blue (d) black
  4. 4.🌈 Which colour of light is strongest in rgb(222, 33, 10)? (a) blue (b) green (c) red
  5. 5.🌈 Which colour is rgb(0, 0, 0)? (a) black (b) cyan (c) bright green (d) white
  6. 6.🌈 Which colour is rgb(255, 0, 255)? (a) red (b) magenta (c) cyan (d) yellow
  7. 7.🌈 Which colour of light is strongest in rgb(55, 127, 196)? (a) green (b) red (c) blue
  8. 8.🌈 Hex digits go 0 to 9, then A to which letter? (a) Z (b) F (c) G (d) J
  9. 9.🌈 Which colour of light is strongest in rgb(235, 94, 75)? (a) blue (b) green (c) red
  10. 10.🌈 Which colour of light is strongest in rgb(245, 49, 12)? (a) red (b) green (c) blue
  11. 11.🌈 Which colour of light is strongest in rgb(24, 30, 189)? (a) red (b) green (c) blue
  12. 12.🌈 Which colour of light is strongest in rgb(33, 68, 157)? (a) red (b) green (c) blue
  13. 13.🌈 Which colour is #ffffff? (a) bright green (b) magenta (c) cyan (d) white
  14. 14.🌈 Which colour is #ffff00? (a) white (b) bright green (c) yellow (d) magenta
  15. 15.🌈 In #rrggbb, which colour do the first two digits give? (a) green (b) blue (c) red (d) black
  16. 16.🌈 Which colour is #ff0000? (a) bright green (b) cyan (c) yellow (d) red
  17. 17.🌈 Which colour is rgb(0, 255, 0)? (a) cyan (b) bright green (c) white (d) blue
  18. 18.🌈 Which hex code is bright green? (a) #ffffff (b) #00ff00 (c) #000000 (d) #ff0000
  19. 19.🌈 Which hex code is red? (a) #000000 (b) #ff0000 (c) #ffffff (d) #00ff00
  20. 20.🌈 Which colour of light is strongest in rgb(109, 58, 255)? (a) blue (b) green (c) red
  21. 21.🌈 Which colour is rgb(255, 0, 0)? (a) red (b) bright green (c) yellow (d) blue
  22. 22.🌈 Which colour of light is strongest in rgb(50, 121, 158)? (a) red (b) blue (c) green
  23. 23.🌈 Which colour of light is strongest in rgb(154, 90, 37)? (a) green (b) blue (c) red
  24. 24.🌈 Which colour of light is strongest in rgb(110, 154, 6)? (a) red (b) blue (c) green
  25. 25.🌈 Which colour is rgb(255, 255, 0)? (a) bright green (b) blue (c) black (d) yellow
  26. 26.🌈 In #700000 the red part is the hex number 70. What is it as a normal number?
  27. 27.🌈 Which colour is #ff00ff? (a) magenta (b) black (c) red (d) cyan
  28. 28.🌈 Which colour of light is strongest in rgb(230, 135, 66)? (a) blue (b) green (c) red
  29. 29.🌈 Which colour of light is strongest in rgb(136, 251, 71)? (a) red (b) green (c) blue
  30. 30.🌈 Which colour of light is strongest in rgb(160, 115, 9)? (a) blue (b) green (c) red
  31. 31.🌈 Which colour is rgb(0, 0, 255)? (a) black (b) blue (c) yellow (d) magenta
  32. 32.🌈 In #00c100 the green part is the hex number c1. What is it as a normal number?
  33. 33.🌈 In #00a300 the green part is the hex number a3. What is it as a normal number?
  34. 34.🌈 In #rrggbb, which colour do the last two digits give? (a) green (b) red (c) blue (d) white
  35. 35.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 6 (b) 2 (c) 4 (d) 3
  36. 36.🌈 In #00003e the blue part is the hex number 3e. What is it as a normal number?
  37. 37.🌈 Which colour of light is strongest in rgb(120, 189, 87)? (a) blue (b) green (c) red
  38. 38.🌈 Which hex code is cyan? (a) #ffffff (b) #000000 (c) #0000ff (d) #00ffff
  39. 39.🌈 Which colour is #00ffff? (a) yellow (b) white (c) bright green (d) cyan
  40. 40.🌈 In #00006e the blue part is the hex number 6e. What is it as a normal number?

Answer key

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

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