← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 193 · 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.🌈 In #00e900 the green part is the hex number e9. What is it as a normal number?
  2. 2.🌈 In #rrggbb, which colour do the last two digits give? (a) red (b) white (c) green (d) blue
  3. 3.🌈 In #c00000 the red part is the hex number c0. What is it as a normal number?
  4. 4.🌈 Which colour is #00ff00? (a) white (b) magenta (c) cyan (d) bright green
  5. 5.🌈 In #000013 the blue part is the hex number 13. What is it as a normal number?
  6. 6.🌈 In #910000 the red part is the hex number 91. What is it as a normal number?
  7. 7.🌈 In #003600 the green part is the hex number 36. What is it as a normal number?
  8. 8.🌈 Which colour is #ffff00? (a) blue (b) yellow (c) red (d) magenta
  9. 9.🌈 Which colour is rgb(0, 255, 0)? (a) blue (b) bright green (c) red (d) yellow
  10. 10.🌈 Which hex code is white? (a) #ffff00 (b) #000000 (c) #0000ff (d) #ffffff
  11. 11.🌈 In #rrggbb, which colour do the first two digits give? (a) blue (b) red (c) black (d) green
  12. 12.🌈 In #008400 the green part is the hex number 84. What is it as a normal number?
  13. 13.🌈 Which colour is rgb(255, 0, 0)? (a) red (b) blue (c) yellow (d) black
  14. 14.🌈 Which colour is #ff00ff? (a) yellow (b) blue (c) magenta (d) black
  15. 15.🌈 In #b50000 the red part is the hex number b5. What is it as a normal number?
  16. 16.🌈 Which colour is #0000ff? (a) cyan (b) red (c) magenta (d) blue
  17. 17.🌈 Which colour is rgb(255, 0, 255)? (a) blue (b) bright green (c) cyan (d) magenta
  18. 18.🌈 What is the biggest number one colour can have in rgb()? (a) 255 (b) 1000 (c) 99 (d) 100
  19. 19.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) Z (c) J (d) G
  20. 20.🌈 Which hex code is bright green? (a) #00ffff (b) #ffff00 (c) #ff0000 (d) #00ff00
  21. 21.🌈 Which colour is rgb(0, 0, 255)? (a) cyan (b) blue (c) bright green (d) yellow
  22. 22.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 3 (b) 2 (c) 4 (d) 6
  23. 23.🌈 In #00ff00 the green part is the hex number ff. What is it as a normal number?
  24. 24.🌈 Which colour is #00ffff? (a) cyan (b) blue (c) black (d) magenta
  25. 25.🌈 In #0b0000 the red part is the hex number 0b. What is it as a normal number?
  26. 26.🌈 Which colour is #000000? (a) white (b) magenta (c) black (d) yellow
  27. 27.🌈 Which colour of light is strongest in rgb(72, 67, 242)? (a) blue (b) green (c) red
  28. 28.🌈 Which colour of light is strongest in rgb(207, 6, 124)? (a) green (b) red (c) blue
  29. 29.🌈 Which hex code is black? (a) #ffffff (b) #ff0000 (c) #000000 (d) #0000ff
  30. 30.🌈 Which colour is rgb(255, 255, 255)? (a) white (b) red (c) blue (d) yellow
  31. 31.🌈 Which colour is #ffffff? (a) white (b) magenta (c) bright green (d) blue
  32. 32.🌈 In #00004e the blue part is the hex number 4e. What is it as a normal number?
  33. 33.🌈 In #000048 the blue part is the hex number 48. What is it as a normal number?
  34. 34.🌈 Which hex code is cyan? (a) #0000ff (b) #ff0000 (c) #00ffff (d) #ff00ff
  35. 35.🌈 In #0000eb the blue part is the hex number eb. What is it as a normal number?
  36. 36.🌈 Which colour is rgb(0, 255, 255)? (a) blue (b) bright green (c) cyan (d) white
  37. 37.🌈 Which colour of light is strongest in rgb(161, 86, 129)? (a) red (b) blue (c) green
  38. 38.🌈 Which hex code is yellow? (a) #ffffff (b) #000000 (c) #ffff00 (d) #ff0000
  39. 39.🌈 In #002700 the green part is the hex number 27. What is it as a normal number?
  40. 40.🌈 In #009c00 the green part is the hex number 9c. What is it as a normal number?

Answer key

  1. 233
  2. blue
  3. 192
  4. bright green
  5. 19
  6. 145
  7. 54
  8. yellow
  9. bright green
  10. #ffffff
  11. red
  12. 132
  13. red
  14. magenta
  15. 181
  16. blue
  17. magenta
  18. 255
  19. F
  20. #00ff00
  21. blue
  22. 3
  23. 255
  24. cyan
  25. 11
  26. black
  27. blue
  28. red
  29. #000000
  30. white
  31. white
  32. 78
  33. 72
  34. #00ffff
  35. 235
  36. cyan
  37. red
  38. #ffff00
  39. 39
  40. 156

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