← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 132 · 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(27, 67, 220)? (a) red (b) green (c) blue
  2. 2.🌈 Which colour of light is strongest in rgb(175, 76, 13)? (a) blue (b) red (c) green
  3. 3.🌈 Which colour of light is strongest in rgb(132, 210, 130)? (a) red (b) blue (c) green
  4. 4.🌈 In #000049 the blue part is the hex number 49. What is it as a normal number?
  5. 5.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) blue (c) black (d) green
  6. 6.🌈 Which colour is #000000? (a) red (b) black (c) white (d) yellow
  7. 7.🌈 Which colour is rgb(255, 255, 255)? (a) red (b) bright green (c) white (d) yellow
  8. 8.🌈 Which colour is rgb(255, 0, 0)? (a) blue (b) bright green (c) red (d) black
  9. 9.🌈 Which colour of light is strongest in rgb(64, 110, 192)? (a) green (b) blue (c) red
  10. 10.🌈 Which hex code is white? (a) #ffffff (b) #00ffff (c) #ff0000 (d) #ff00ff
  11. 11.🌈 Which colour is #00ffff? (a) red (b) cyan (c) black (d) bright green
  12. 12.🌈 Which colour of light is strongest in rgb(28, 58, 213)? (a) blue (b) red (c) green
  13. 13.🌈 Which colour of light is strongest in rgb(228, 129, 49)? (a) blue (b) red (c) green
  14. 14.🌈 Which colour is rgb(0, 255, 0)? (a) bright green (b) yellow (c) red (d) white
  15. 15.🌈 In #0000cd the blue part is the hex number cd. What is it as a normal number?
  16. 16.🌈 In #0000e0 the blue part is the hex number e0. What is it as a normal number?
  17. 17.🌈 Which colour is rgb(255, 255, 0)? (a) yellow (b) cyan (c) magenta (d) red
  18. 18.🌈 Which colour is #ffffff? (a) white (b) yellow (c) bright green (d) magenta
  19. 19.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 4 (b) 6 (c) 3 (d) 2
  20. 20.🌈 Which hex code is magenta? (a) #ff0000 (b) #ff00ff (c) #000000 (d) #00ffff
  21. 21.🌈 Which hex code is blue? (a) #0000ff (b) #00ffff (c) #ffffff (d) #ff0000
  22. 22.🌈 Which colour is rgb(0, 255, 255)? (a) yellow (b) red (c) bright green (d) cyan
  23. 23.🌈 Which hex code is bright green? (a) #00ff00 (b) #000000 (c) #ff0000 (d) #ffffff
  24. 24.🌈 In #rrggbb, which colour do the last two digits give? (a) red (b) green (c) white (d) blue
  25. 25.🌈 Which colour is #ff0000? (a) white (b) magenta (c) bright green (d) red
  26. 26.🌈 Which colour is #0000ff? (a) bright green (b) cyan (c) red (d) blue
  27. 27.🌈 Which hex code is red? (a) #0000ff (b) #ffffff (c) #00ffff (d) #ff0000
  28. 28.🌈 Which colour of light is strongest in rgb(15, 238, 77)? (a) red (b) blue (c) green
  29. 29.🌈 In #000003 the blue part is the hex number 03. What is it as a normal number?
  30. 30.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 255 (c) 100 (d) 1000
  31. 31.🌈 Which colour of light is strongest in rgb(22, 109, 229)? (a) green (b) blue (c) red
  32. 32.🌈 In #000075 the blue part is the hex number 75. What is it as a normal number?
  33. 33.🌈 In #040000 the red part is the hex number 04. What is it as a normal number?
  34. 34.🌈 Which colour of light is strongest in rgb(126, 25, 171)? (a) green (b) blue (c) red
  35. 35.🌈 Which colour is rgb(255, 0, 255)? (a) magenta (b) red (c) black (d) yellow
  36. 36.🌈 In #5e0000 the red part is the hex number 5e. What is it as a normal number?
  37. 37.🌈 Which hex code is yellow? (a) #0000ff (b) #ffff00 (c) #00ff00 (d) #00ffff
  38. 38.🌈 Which colour is #00ff00? (a) bright green (b) black (c) blue (d) white
  39. 39.🌈 Which colour is rgb(0, 0, 255)? (a) blue (b) yellow (c) bright green (d) black
  40. 40.🌈 Which colour is #ff00ff? (a) blue (b) yellow (c) red (d) magenta

Answer key

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

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