← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 31 · 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(11, 168, 104)? (a) green (b) red (c) blue
  2. 2.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 99 (c) 1000 (d) 255
  3. 3.🌈 Which colour is rgb(0, 255, 0)? (a) yellow (b) bright green (c) red (d) black
  4. 4.🌈 Which colour is rgb(255, 255, 255)? (a) black (b) yellow (c) bright green (d) white
  5. 5.🌈 Which colour of light is strongest in rgb(175, 14, 29)? (a) green (b) red (c) blue
  6. 6.🌈 In #rrggbb, which colour do the first two digits give? (a) blue (b) green (c) red (d) black
  7. 7.🌈 Which colour is #0000ff? (a) magenta (b) red (c) blue (d) white
  8. 8.🌈 In #rrggbb, which colour do the last two digits give? (a) green (b) blue (c) white (d) red
  9. 9.🌈 Which hex code is magenta? (a) #000000 (b) #0000ff (c) #ff0000 (d) #ff00ff
  10. 10.🌈 In #120000 the red part is the hex number 12. What is it as a normal number?
  11. 11.🌈 Which colour is rgb(0, 0, 255)? (a) bright green (b) blue (c) yellow (d) red
  12. 12.🌈 Which colour is #00ffff? (a) black (b) cyan (c) white (d) bright green
  13. 13.🌈 In #007c00 the green part is the hex number 7c. What is it as a normal number?
  14. 14.🌈 Which colour of light is strongest in rgb(199, 75, 65)? (a) blue (b) red (c) green
  15. 15.🌈 Which colour of light is strongest in rgb(157, 32, 15)? (a) blue (b) green (c) red
  16. 16.🌈 Hex digits go 0 to 9, then A to which letter? (a) G (b) Z (c) J (d) F
  17. 17.🌈 Which hex code is yellow? (a) #ffff00 (b) #00ff00 (c) #0000ff (d) #00ffff
  18. 18.🌈 Which colour is #ffff00? (a) bright green (b) yellow (c) black (d) red
  19. 19.🌈 Which colour is #ffffff? (a) white (b) red (c) bright green (d) blue
  20. 20.🌈 Which colour of light is strongest in rgb(230, 97, 33)? (a) red (b) green (c) blue
  21. 21.🌈 Which colour of light is strongest in rgb(72, 62, 232)? (a) blue (b) green (c) red
  22. 22.🌈 Which hex code is black? (a) #ff0000 (b) #000000 (c) #00ff00 (d) #ff00ff
  23. 23.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 4 (b) 2 (c) 3 (d) 6
  24. 24.🌈 Which colour is #ff0000? (a) yellow (b) blue (c) bright green (d) red
  25. 25.🌈 Which hex code is cyan? (a) #ff0000 (b) #ffffff (c) #000000 (d) #00ffff
  26. 26.🌈 Which colour is rgb(0, 255, 255)? (a) cyan (b) bright green (c) white (d) blue
  27. 27.🌈 Which colour of light is strongest in rgb(69, 50, 162)? (a) red (b) green (c) blue
  28. 28.🌈 Which hex code is red? (a) #00ffff (b) #ffffff (c) #ff0000 (d) #00ff00
  29. 29.🌈 Which colour of light is strongest in rgb(255, 130, 103)? (a) blue (b) red (c) green
  30. 30.🌈 Which colour of light is strongest in rgb(150, 101, 134)? (a) blue (b) red (c) green
  31. 31.🌈 In #00ab00 the green part is the hex number ab. What is it as a normal number?
  32. 32.🌈 Which hex code is bright green? (a) #00ff00 (b) #ffff00 (c) #ffffff (d) #00ffff
  33. 33.🌈 Which colour is #ff00ff? (a) white (b) bright green (c) red (d) magenta
  34. 34.🌈 Which colour is rgb(0, 0, 0)? (a) cyan (b) black (c) bright green (d) magenta
  35. 35.🌈 Which colour is rgb(255, 255, 0)? (a) black (b) yellow (c) magenta (d) white
  36. 36.🌈 Which colour is rgb(255, 0, 0)? (a) black (b) yellow (c) red (d) magenta
  37. 37.🌈 Which colour of light is strongest in rgb(184, 102, 51)? (a) red (b) green (c) blue
  38. 38.🌈 Which colour is rgb(255, 0, 255)? (a) bright green (b) black (c) yellow (d) magenta
  39. 39.🌈 In #000b00 the green part is the hex number 0b. What is it as a normal number?
  40. 40.🌈 In #0e0000 the red part is the hex number 0e. What is it as a normal number?

Answer key

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

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