← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 301 · 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(195, 49, 125)? (a) blue (b) red (c) green
  2. 2.🌈 Which colour of light is strongest in rgb(24, 229, 131)? (a) red (b) green (c) blue
  3. 3.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) black (c) green (d) blue
  4. 4.🌈 Which colour is #00ff00? (a) blue (b) white (c) black (d) bright green
  5. 5.🌈 Which colour of light is strongest in rgb(192, 23, 109)? (a) blue (b) green (c) red
  6. 6.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) J (c) Z (d) G
  7. 7.🌈 Which colour of light is strongest in rgb(135, 154, 66)? (a) red (b) blue (c) green
  8. 8.🌈 Which hex code is bright green? (a) #ff0000 (b) #ffffff (c) #000000 (d) #00ff00
  9. 9.🌈 Which colour of light is strongest in rgb(172, 22, 138)? (a) blue (b) green (c) red
  10. 10.🌈 Which colour of light is strongest in rgb(119, 213, 90)? (a) blue (b) red (c) green
  11. 11.🌈 In #00f400 the green part is the hex number f4. What is it as a normal number?
  12. 12.🌈 Which hex code is yellow? (a) #000000 (b) #ffff00 (c) #00ff00 (d) #ff0000
  13. 13.🌈 Which colour is #ffff00? (a) blue (b) yellow (c) white (d) magenta
  14. 14.🌈 In #6c0000 the red part is the hex number 6c. What is it as a normal number?
  15. 15.🌈 Which hex code is cyan? (a) #00ffff (b) #0000ff (c) #ffffff (d) #ffff00
  16. 16.🌈 Which hex code is magenta? (a) #ffffff (b) #ffff00 (c) #ff00ff (d) #00ff00
  17. 17.🌈 Which colour is #00ffff? (a) cyan (b) bright green (c) blue (d) yellow
  18. 18.🌈 Which colour of light is strongest in rgb(60, 95, 245)? (a) green (b) blue (c) red
  19. 19.🌈 In #000080 the blue part is the hex number 80. What is it as a normal number?
  20. 20.🌈 Which colour is rgb(0, 0, 255)? (a) cyan (b) blue (c) yellow (d) bright green
  21. 21.🌈 Which colour is #ffffff? (a) red (b) black (c) white (d) yellow
  22. 22.🌈 Which colour is #ff0000? (a) magenta (b) red (c) bright green (d) white
  23. 23.🌈 In #009200 the green part is the hex number 92. What is it as a normal number?
  24. 24.🌈 In #00bb00 the green part is the hex number bb. What is it as a normal number?
  25. 25.🌈 In #000008 the blue part is the hex number 08. What is it as a normal number?
  26. 26.🌈 Which colour of light is strongest in rgb(237, 10, 40)? (a) blue (b) red (c) green
  27. 27.🌈 Which colour of light is strongest in rgb(53, 162, 103)? (a) green (b) red (c) blue
  28. 28.🌈 Which hex code is blue? (a) #000000 (b) #ffffff (c) #0000ff (d) #ffff00
  29. 29.🌈 Which colour is rgb(255, 0, 0)? (a) magenta (b) red (c) white (d) yellow
  30. 30.🌈 Which colour is #0000ff? (a) bright green (b) black (c) blue (d) cyan
  31. 31.🌈 Which colour is rgb(255, 255, 0)? (a) black (b) yellow (c) magenta (d) cyan
  32. 32.🌈 Which colour of light is strongest in rgb(28, 244, 96)? (a) blue (b) red (c) green
  33. 33.🌈 Which colour of light is strongest in rgb(38, 161, 58)? (a) red (b) green (c) blue
  34. 34.🌈 Which colour is rgb(0, 255, 255)? (a) cyan (b) red (c) bright green (d) yellow
  35. 35.🌈 In #000097 the blue part is the hex number 97. What is it as a normal number?
  36. 36.🌈 In #000070 the blue part is the hex number 70. What is it as a normal number?
  37. 37.🌈 Which colour of light is strongest in rgb(65, 117, 226)? (a) green (b) red (c) blue
  38. 38.🌈 What is the biggest number one colour can have in rgb()? (a) 255 (b) 1000 (c) 99 (d) 100
  39. 39.🌈 Which colour is #000000? (a) red (b) bright green (c) black (d) white
  40. 40.🌈 In #210000 the red part is the hex number 21. What is it as a normal number?

Answer key

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

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