← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 341 · 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 hex code is magenta? (a) #ff0000 (b) #00ffff (c) #ff00ff (d) #00ff00
  2. 2.🌈 Which colour of light is strongest in rgb(133, 152, 126)? (a) red (b) green (c) blue
  3. 3.🌈 In #001200 the green part is the hex number 12. What is it as a normal number?
  4. 4.🌈 Which colour of light is strongest in rgb(75, 253, 113)? (a) blue (b) red (c) green
  5. 5.🌈 Which colour is rgb(255, 255, 255)? (a) black (b) magenta (c) white (d) red
  6. 6.🌈 Which colour of light is strongest in rgb(182, 13, 89)? (a) blue (b) red (c) green
  7. 7.🌈 Which colour is #00ffff? (a) cyan (b) magenta (c) bright green (d) white
  8. 8.🌈 Which colour is #ffff00? (a) black (b) yellow (c) cyan (d) blue
  9. 9.🌈 Which colour of light is strongest in rgb(173, 50, 102)? (a) red (b) blue (c) green
  10. 10.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 1000 (c) 99 (d) 255
  11. 11.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) green (c) blue (d) red
  12. 12.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) Z (c) G (d) F
  13. 13.🌈 Which colour of light is strongest in rgb(15, 22, 248)? (a) blue (b) red (c) green
  14. 14.🌈 In #005600 the green part is the hex number 56. What is it as a normal number?
  15. 15.🌈 Which colour of light is strongest in rgb(19, 97, 238)? (a) red (b) green (c) blue
  16. 16.🌈 Which hex code is black? (a) #ff0000 (b) #00ff00 (c) #ff00ff (d) #000000
  17. 17.🌈 Which colour is #ff00ff? (a) bright green (b) cyan (c) magenta (d) blue
  18. 18.🌈 Which hex code is blue? (a) #ffffff (b) #0000ff (c) #ff0000 (d) #00ff00
  19. 19.🌈 Which colour of light is strongest in rgb(103, 249, 106)? (a) blue (b) red (c) green
  20. 20.🌈 Which colour is #00ff00? (a) bright green (b) red (c) yellow (d) magenta
  21. 21.🌈 Which colour is rgb(255, 255, 0)? (a) yellow (b) white (c) black (d) magenta
  22. 22.🌈 Which hex code is yellow? (a) #ffff00 (b) #00ffff (c) #ffffff (d) #000000
  23. 23.🌈 Which colour of light is strongest in rgb(25, 31, 177)? (a) blue (b) red (c) green
  24. 24.🌈 In #940000 the red part is the hex number 94. What is it as a normal number?
  25. 25.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) green (c) blue (d) black
  26. 26.🌈 Which colour of light is strongest in rgb(12, 207, 81)? (a) green (b) red (c) blue
  27. 27.🌈 Which colour of light is strongest in rgb(14, 174, 19)? (a) red (b) green (c) blue
  28. 28.🌈 In #730000 the red part is the hex number 73. What is it as a normal number?
  29. 29.🌈 In #00f800 the green part is the hex number f8. What is it as a normal number?
  30. 30.🌈 Which colour of light is strongest in rgb(59, 190, 7)? (a) red (b) blue (c) green
  31. 31.🌈 Which hex code is cyan? (a) #0000ff (b) #000000 (c) #ffff00 (d) #00ffff
  32. 32.🌈 In #003900 the green part is the hex number 39. What is it as a normal number?
  33. 33.🌈 Which colour of light is strongest in rgb(171, 44, 105)? (a) blue (b) red (c) green
  34. 34.🌈 In #550000 the red part is the hex number 55. What is it as a normal number?
  35. 35.🌈 Which colour is #ffffff? (a) cyan (b) white (c) blue (d) black
  36. 36.🌈 Which colour of light is strongest in rgb(232, 31, 22)? (a) green (b) red (c) blue
  37. 37.🌈 In #00d300 the green part is the hex number d3. What is it as a normal number?
  38. 38.🌈 Which colour of light is strongest in rgb(227, 10, 39)? (a) green (b) blue (c) red
  39. 39.🌈 Which colour is rgb(255, 0, 255)? (a) magenta (b) black (c) blue (d) red
  40. 40.🌈 Which colour of light is strongest in rgb(37, 218, 66)? (a) blue (b) red (c) green

Answer key

  1. #ff00ff
  2. green
  3. 18
  4. green
  5. white
  6. red
  7. cyan
  8. yellow
  9. red
  10. 255
  11. blue
  12. F
  13. blue
  14. 86
  15. blue
  16. #000000
  17. magenta
  18. #0000ff
  19. green
  20. bright green
  21. yellow
  22. #ffff00
  23. blue
  24. 148
  25. red
  26. green
  27. green
  28. 115
  29. 248
  30. green
  31. #00ffff
  32. 57
  33. red
  34. 85
  35. white
  36. red
  37. 211
  38. red
  39. magenta
  40. green

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