← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 210 · 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 #00ff00? (a) magenta (b) bright green (c) red (d) white
  2. 2.🌈 Which colour is rgb(0, 0, 255)? (a) yellow (b) blue (c) red (d) white
  3. 3.🌈 Which colour is rgb(255, 255, 255)? (a) magenta (b) bright green (c) white (d) black
  4. 4.🌈 Which colour of light is strongest in rgb(229, 16, 105)? (a) blue (b) green (c) red
  5. 5.🌈 Which colour is #ff0000? (a) blue (b) red (c) black (d) white
  6. 6.🌈 Which colour is rgb(0, 255, 0)? (a) blue (b) cyan (c) yellow (d) bright green
  7. 7.🌈 Hex digits go 0 to 9, then A to which letter? (a) Z (b) F (c) J (d) G
  8. 8.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 3 (b) 6 (c) 4 (d) 2
  9. 9.🌈 Which colour is rgb(255, 0, 0)? (a) black (b) red (c) bright green (d) blue
  10. 10.🌈 In #001b00 the green part is the hex number 1b. What is it as a normal number?
  11. 11.🌈 Which colour of light is strongest in rgb(174, 123, 82)? (a) red (b) blue (c) green
  12. 12.🌈 Which colour is #ffffff? (a) blue (b) black (c) white (d) cyan
  13. 13.🌈 Which colour of light is strongest in rgb(10, 154, 3)? (a) red (b) green (c) blue
  14. 14.🌈 Which colour is #000000? (a) white (b) cyan (c) black (d) yellow
  15. 15.🌈 Which colour of light is strongest in rgb(73, 198, 112)? (a) red (b) green (c) blue
  16. 16.🌈 Which hex code is black? (a) #ffffff (b) #000000 (c) #ff0000 (d) #00ff00
  17. 17.🌈 In #370000 the red part is the hex number 37. What is it as a normal number?
  18. 18.🌈 Which hex code is white? (a) #0000ff (b) #ffffff (c) #ff0000 (d) #000000
  19. 19.🌈 In #00e800 the green part is the hex number e8. What is it as a normal number?
  20. 20.🌈 Which colour of light is strongest in rgb(237, 116, 53)? (a) green (b) red (c) blue
  21. 21.🌈 Which colour of light is strongest in rgb(250, 7, 37)? (a) red (b) blue (c) green
  22. 22.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 100 (c) 255 (d) 1000
  23. 23.🌈 In #f70000 the red part is the hex number f7. What is it as a normal number?
  24. 24.🌈 Which colour is #0000ff? (a) cyan (b) blue (c) black (d) red
  25. 25.🌈 Which colour is rgb(0, 0, 0)? (a) cyan (b) black (c) red (d) magenta
  26. 26.🌈 In #rrggbb, which colour do the last two digits give? (a) blue (b) green (c) red (d) white
  27. 27.🌈 In #000087 the blue part is the hex number 87. What is it as a normal number?
  28. 28.🌈 In #rrggbb, which colour do the first two digits give? (a) blue (b) green (c) red (d) black
  29. 29.🌈 Which colour is rgb(255, 0, 255)? (a) red (b) white (c) bright green (d) magenta
  30. 30.🌈 Which colour is rgb(0, 255, 255)? (a) blue (b) bright green (c) white (d) cyan
  31. 31.🌈 Which hex code is cyan? (a) #00ff00 (b) #ffffff (c) #00ffff (d) #ff00ff
  32. 32.🌈 Which colour is #00ffff? (a) cyan (b) bright green (c) blue (d) black
  33. 33.🌈 In #001200 the green part is the hex number 12. What is it as a normal number?
  34. 34.🌈 In #001000 the green part is the hex number 10. What is it as a normal number?
  35. 35.🌈 Which hex code is blue? (a) #0000ff (b) #000000 (c) #ff0000 (d) #00ff00
  36. 36.🌈 In #000040 the blue part is the hex number 40. What is it as a normal number?
  37. 37.🌈 In #004b00 the green part is the hex number 4b. What is it as a normal number?
  38. 38.🌈 Which colour is #ffff00? (a) cyan (b) blue (c) red (d) yellow
  39. 39.🌈 In #00c600 the green part is the hex number c6. What is it as a normal number?
  40. 40.🌈 Which colour of light is strongest in rgb(43, 230, 9)? (a) green (b) red (c) blue

Answer key

  1. bright green
  2. blue
  3. white
  4. red
  5. red
  6. bright green
  7. F
  8. 3
  9. red
  10. 27
  11. red
  12. white
  13. green
  14. black
  15. green
  16. #000000
  17. 55
  18. #ffffff
  19. 232
  20. red
  21. red
  22. 255
  23. 247
  24. blue
  25. black
  26. blue
  27. 135
  28. red
  29. magenta
  30. cyan
  31. #00ffff
  32. cyan
  33. 18
  34. 16
  35. #0000ff
  36. 64
  37. 75
  38. yellow
  39. 198
  40. green

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