← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 151 · 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 #ff0000? (a) magenta (b) cyan (c) blue (d) red
  2. 2.🌈 Which colour is #000000? (a) bright green (b) blue (c) black (d) red
  3. 3.🌈 What is the biggest number one colour can have in rgb()? (a) 255 (b) 100 (c) 99 (d) 1000
  4. 4.🌈 In #rrggbb, which colour do the last two digits give? (a) red (b) white (c) green (d) blue
  5. 5.🌈 Which colour is rgb(255, 255, 0)? (a) cyan (b) magenta (c) blue (d) yellow
  6. 6.🌈 Which colour is #00ffff? (a) magenta (b) blue (c) bright green (d) cyan
  7. 7.🌈 Which colour of light is strongest in rgb(253, 124, 24)? (a) blue (b) red (c) green
  8. 8.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 3 (b) 4 (c) 2 (d) 6
  9. 9.🌈 Which colour is rgb(255, 0, 0)? (a) white (b) bright green (c) red (d) blue
  10. 10.🌈 Which hex code is blue? (a) #000000 (b) #00ffff (c) #0000ff (d) #ffff00
  11. 11.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) blue (c) black (d) green
  12. 12.🌈 Which colour is rgb(0, 255, 255)? (a) cyan (b) magenta (c) red (d) white
  13. 13.🌈 Which colour is #00ff00? (a) black (b) cyan (c) blue (d) bright green
  14. 14.🌈 Which hex code is cyan? (a) #ff00ff (b) #00ffff (c) #ffff00 (d) #ff0000
  15. 15.🌈 Which colour of light is strongest in rgb(11, 236, 139)? (a) blue (b) green (c) red
  16. 16.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) F (c) Z (d) G
  17. 17.🌈 Which colour of light is strongest in rgb(178, 42, 44)? (a) blue (b) green (c) red
  18. 18.🌈 Which colour is rgb(255, 0, 255)? (a) bright green (b) red (c) magenta (d) black
  19. 19.🌈 Which colour of light is strongest in rgb(45, 30, 152)? (a) red (b) blue (c) green
  20. 20.🌈 Which colour is rgb(255, 255, 255)? (a) black (b) white (c) yellow (d) cyan
  21. 21.🌈 Which colour of light is strongest in rgb(175, 75, 33)? (a) blue (b) green (c) red
  22. 22.🌈 In #ee0000 the red part is the hex number ee. What is it as a normal number?
  23. 23.🌈 Which colour of light is strongest in rgb(134, 179, 79)? (a) blue (b) green (c) red
  24. 24.🌈 In #00001c the blue part is the hex number 1c. What is it as a normal number?
  25. 25.🌈 Which colour of light is strongest in rgb(150, 23, 117)? (a) green (b) blue (c) red
  26. 26.🌈 Which colour of light is strongest in rgb(248, 114, 24)? (a) blue (b) red (c) green
  27. 27.🌈 Which colour of light is strongest in rgb(203, 86, 122)? (a) blue (b) red (c) green
  28. 28.🌈 Which colour is #ffff00? (a) yellow (b) bright green (c) cyan (d) white
  29. 29.🌈 Which colour of light is strongest in rgb(112, 55, 224)? (a) blue (b) green (c) red
  30. 30.🌈 Which colour of light is strongest in rgb(26, 230, 63)? (a) red (b) green (c) blue
  31. 31.🌈 Which colour is rgb(0, 0, 0)? (a) black (b) yellow (c) blue (d) white
  32. 32.🌈 Which colour is #ff00ff? (a) white (b) black (c) magenta (d) cyan
  33. 33.🌈 Which hex code is red? (a) #00ffff (b) #000000 (c) #ff0000 (d) #ffffff
  34. 34.🌈 In #00f200 the green part is the hex number f2. What is it as a normal number?
  35. 35.🌈 Which colour of light is strongest in rgb(234, 121, 115)? (a) blue (b) green (c) red
  36. 36.🌈 Which colour is #0000ff? (a) blue (b) yellow (c) cyan (d) red
  37. 37.🌈 Which hex code is bright green? (a) #00ff00 (b) #0000ff (c) #000000 (d) #00ffff
  38. 38.🌈 In #710000 the red part is the hex number 71. What is it as a normal number?
  39. 39.🌈 Which colour of light is strongest in rgb(83, 113, 151)? (a) green (b) blue (c) red
  40. 40.🌈 Which colour of light is strongest in rgb(254, 117, 77)? (a) green (b) blue (c) red

Answer key

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

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