← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 289 · 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 rgb(0, 255, 0)? (a) bright green (b) magenta (c) red (d) blue
  2. 2.🌈 In #00c700 the green part is the hex number c7. What is it as a normal number?
  3. 3.🌈 Which colour of light is strongest in rgb(48, 205, 108)? (a) red (b) blue (c) green
  4. 4.🌈 Which colour is #000000? (a) red (b) cyan (c) bright green (d) black
  5. 5.🌈 Hex digits go 0 to 9, then A to which letter? (a) Z (b) J (c) F (d) G
  6. 6.🌈 Which colour of light is strongest in rgb(154, 118, 106)? (a) red (b) blue (c) green
  7. 7.🌈 Which colour is #00ffff? (a) cyan (b) white (c) red (d) black
  8. 8.🌈 Which colour is #ffffff? (a) black (b) magenta (c) cyan (d) white
  9. 9.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) blue (c) black (d) green
  10. 10.🌈 Which hex code is blue? (a) #ffffff (b) #0000ff (c) #00ff00 (d) #ffff00
  11. 11.🌈 Which colour is #0000ff? (a) bright green (b) magenta (c) yellow (d) blue
  12. 12.🌈 Which colour of light is strongest in rgb(24, 120, 198)? (a) blue (b) green (c) red
  13. 13.🌈 In #340000 the red part is the hex number 34. What is it as a normal number?
  14. 14.🌈 Which colour is #ff00ff? (a) black (b) red (c) bright green (d) magenta
  15. 15.🌈 In #002f00 the green part is the hex number 2f. What is it as a normal number?
  16. 16.🌈 Which hex code is cyan? (a) #ffffff (b) #00ffff (c) #00ff00 (d) #ff00ff
  17. 17.🌈 Which colour is rgb(255, 0, 0)? (a) red (b) bright green (c) white (d) cyan
  18. 18.🌈 In #rrggbb, which colour do the last two digits give? (a) green (b) blue (c) white (d) red
  19. 19.🌈 Which colour is #ff0000? (a) bright green (b) red (c) magenta (d) white
  20. 20.🌈 Which colour of light is strongest in rgb(213, 19, 47)? (a) red (b) green (c) blue
  21. 21.🌈 In #130000 the red part is the hex number 13. What is it as a normal number?
  22. 22.🌈 In #003000 the green part is the hex number 30. What is it as a normal number?
  23. 23.🌈 In #000006 the blue part is the hex number 06. What is it as a normal number?
  24. 24.🌈 Which colour is rgb(255, 255, 255)? (a) white (b) bright green (c) cyan (d) blue
  25. 25.🌈 Which hex code is black? (a) #ff00ff (b) #00ffff (c) #000000 (d) #ffffff
  26. 26.🌈 Which colour is rgb(255, 0, 255)? (a) magenta (b) red (c) black (d) bright green
  27. 27.🌈 In #00003a the blue part is the hex number 3a. What is it as a normal number?
  28. 28.🌈 Which colour of light is strongest in rgb(2, 165, 28)? (a) green (b) blue (c) red
  29. 29.🌈 In #300000 the red part is the hex number 30. What is it as a normal number?
  30. 30.🌈 Which colour is #ffff00? (a) black (b) yellow (c) red (d) white
  31. 31.🌈 In #004200 the green part is the hex number 42. What is it as a normal number?
  32. 32.🌈 Which hex code is magenta? (a) #ff0000 (b) #00ffff (c) #ff00ff (d) #00ff00
  33. 33.🌈 Which colour of light is strongest in rgb(4, 215, 131)? (a) green (b) blue (c) red
  34. 34.🌈 Which colour of light is strongest in rgb(117, 169, 66)? (a) green (b) blue (c) red
  35. 35.🌈 In #0000e3 the blue part is the hex number e3. What is it as a normal number?
  36. 36.🌈 Which colour of light is strongest in rgb(120, 25, 158)? (a) red (b) green (c) blue
  37. 37.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 255 (c) 100 (d) 1000
  38. 38.🌈 In #000083 the blue part is the hex number 83. What is it as a normal number?
  39. 39.🌈 Which colour is #00ff00? (a) yellow (b) blue (c) white (d) bright green
  40. 40.🌈 Which colour of light is strongest in rgb(133, 45, 191)? (a) red (b) green (c) blue

Answer key

  1. bright green
  2. 199
  3. green
  4. black
  5. F
  6. red
  7. cyan
  8. white
  9. red
  10. #0000ff
  11. blue
  12. blue
  13. 52
  14. magenta
  15. 47
  16. #00ffff
  17. red
  18. blue
  19. red
  20. red
  21. 19
  22. 48
  23. 6
  24. white
  25. #000000
  26. magenta
  27. 58
  28. green
  29. 48
  30. yellow
  31. 66
  32. #ff00ff
  33. green
  34. green
  35. 227
  36. blue
  37. 255
  38. 131
  39. bright green
  40. blue

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