← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 369 · 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(26, 16, 254)? (a) green (b) red (c) blue
  2. 2.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 2 (b) 6 (c) 4 (d) 3
  3. 3.🌈 Which colour of light is strongest in rgb(4, 221, 109)? (a) blue (b) red (c) green
  4. 4.🌈 Which colour of light is strongest in rgb(102, 227, 89)? (a) green (b) blue (c) red
  5. 5.🌈 Which colour of light is strongest in rgb(162, 92, 95)? (a) green (b) red (c) blue
  6. 6.🌈 Which colour of light is strongest in rgb(138, 222, 119)? (a) red (b) green (c) blue
  7. 7.🌈 Which colour of light is strongest in rgb(167, 14, 45)? (a) green (b) red (c) blue
  8. 8.🌈 Which colour of light is strongest in rgb(44, 110, 168)? (a) blue (b) red (c) green
  9. 9.🌈 In #000023 the blue part is the hex number 23. What is it as a normal number?
  10. 10.🌈 In #rrggbb, which colour do the first two digits give? (a) blue (b) black (c) red (d) green
  11. 11.🌈 Which colour of light is strongest in rgb(216, 36, 25)? (a) green (b) red (c) blue
  12. 12.🌈 Which colour is #ff00ff? (a) bright green (b) black (c) magenta (d) white
  13. 13.🌈 Which colour of light is strongest in rgb(45, 213, 134)? (a) red (b) blue (c) green
  14. 14.🌈 Which colour is #00ff00? (a) red (b) bright green (c) cyan (d) white
  15. 15.🌈 In #00d000 the green part is the hex number d0. What is it as a normal number?
  16. 16.🌈 What is the biggest number one colour can have in rgb()? (a) 1000 (b) 255 (c) 100 (d) 99
  17. 17.🌈 Which colour is rgb(255, 255, 0)? (a) yellow (b) red (c) black (d) blue
  18. 18.🌈 Which hex code is white? (a) #00ffff (b) #ff0000 (c) #000000 (d) #ffffff
  19. 19.🌈 Which hex code is magenta? (a) #000000 (b) #ff00ff (c) #0000ff (d) #ffff00
  20. 20.🌈 In #000035 the blue part is the hex number 35. What is it as a normal number?
  21. 21.🌈 Which colour of light is strongest in rgb(201, 8, 70)? (a) blue (b) green (c) red
  22. 22.🌈 In #rrggbb, which colour do the last two digits give? (a) red (b) blue (c) white (d) green
  23. 23.🌈 In #8d0000 the red part is the hex number 8d. What is it as a normal number?
  24. 24.🌈 Which colour is #000000? (a) blue (b) magenta (c) black (d) bright green
  25. 25.🌈 Which colour of light is strongest in rgb(204, 120, 34)? (a) red (b) blue (c) green
  26. 26.🌈 Which colour is #0000ff? (a) red (b) yellow (c) cyan (d) blue
  27. 27.🌈 Which hex code is yellow? (a) #000000 (b) #ffffff (c) #ff0000 (d) #ffff00
  28. 28.🌈 Which colour of light is strongest in rgb(31, 126, 176)? (a) red (b) blue (c) green
  29. 29.🌈 Which hex code is cyan? (a) #0000ff (b) #00ffff (c) #ff0000 (d) #ffffff
  30. 30.🌈 Which colour is rgb(0, 0, 255)? (a) bright green (b) red (c) magenta (d) blue
  31. 31.🌈 In #00001b the blue part is the hex number 1b. What is it as a normal number?
  32. 32.🌈 Which colour is #ffff00? (a) blue (b) red (c) black (d) yellow
  33. 33.🌈 Which hex code is red? (a) #00ff00 (b) #ff0000 (c) #000000 (d) #ffff00
  34. 34.🌈 Which colour of light is strongest in rgb(166, 63, 64)? (a) green (b) red (c) blue
  35. 35.🌈 Which colour of light is strongest in rgb(248, 86, 100)? (a) blue (b) green (c) red
  36. 36.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) F (c) Z (d) G
  37. 37.🌈 Which colour is #ff0000? (a) blue (b) black (c) white (d) red
  38. 38.🌈 Which colour is rgb(0, 255, 255)? (a) red (b) white (c) cyan (d) bright green
  39. 39.🌈 Which hex code is bright green? (a) #0000ff (b) #000000 (c) #ffff00 (d) #00ff00
  40. 40.🌈 Which colour is rgb(255, 0, 0)? (a) cyan (b) magenta (c) white (d) red

Answer key

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

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