← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 338 · 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 #rrggbb, which colour do the first two digits give? (a) black (b) green (c) red (d) blue
  2. 2.🌈 Which colour is #00ffff? (a) bright green (b) blue (c) yellow (d) cyan
  3. 3.🌈 Which colour is #ffffff? (a) bright green (b) black (c) white (d) blue
  4. 4.🌈 Hex digits go 0 to 9, then A to which letter? (a) Z (b) G (c) J (d) F
  5. 5.🌈 In #rrggbb, which colour do the last two digits give? (a) green (b) blue (c) red (d) white
  6. 6.🌈 In #001700 the green part is the hex number 17. What is it as a normal number?
  7. 7.🌈 Which colour of light is strongest in rgb(129, 194, 44)? (a) red (b) blue (c) green
  8. 8.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 255 (c) 1000 (d) 99
  9. 9.🌈 Which colour of light is strongest in rgb(196, 75, 106)? (a) red (b) blue (c) green
  10. 10.🌈 Which colour of light is strongest in rgb(24, 43, 175)? (a) blue (b) red (c) green
  11. 11.🌈 Which colour is rgb(255, 0, 0)? (a) red (b) yellow (c) white (d) bright green
  12. 12.🌈 Which colour is #ff0000? (a) cyan (b) bright green (c) white (d) red
  13. 13.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 6 (b) 3 (c) 2 (d) 4
  14. 14.🌈 Which colour is rgb(0, 255, 255)? (a) yellow (b) blue (c) red (d) cyan
  15. 15.🌈 Which hex code is blue? (a) #ffff00 (b) #0000ff (c) #00ffff (d) #000000
  16. 16.🌈 Which hex code is bright green? (a) #00ff00 (b) #000000 (c) #ff00ff (d) #0000ff
  17. 17.🌈 Which colour of light is strongest in rgb(155, 84, 16)? (a) red (b) blue (c) green
  18. 18.🌈 Which colour is rgb(0, 255, 0)? (a) cyan (b) bright green (c) red (d) blue
  19. 19.🌈 In #0000cd the blue part is the hex number cd. What is it as a normal number?
  20. 20.🌈 Which colour is rgb(0, 0, 255)? (a) magenta (b) blue (c) red (d) cyan
  21. 21.🌈 Which hex code is cyan? (a) #0000ff (b) #ff0000 (c) #ffff00 (d) #00ffff
  22. 22.🌈 Which colour is rgb(255, 255, 0)? (a) red (b) white (c) yellow (d) blue
  23. 23.🌈 Which colour is #0000ff? (a) cyan (b) magenta (c) white (d) blue
  24. 24.🌈 Which colour of light is strongest in rgb(183, 54, 51)? (a) red (b) blue (c) green
  25. 25.🌈 Which hex code is yellow? (a) #ffffff (b) #00ff00 (c) #ff00ff (d) #ffff00
  26. 26.🌈 Which colour is #000000? (a) black (b) red (c) bright green (d) yellow
  27. 27.🌈 In #0a0000 the red part is the hex number 0a. What is it as a normal number?
  28. 28.🌈 Which colour is #00ff00? (a) bright green (b) blue (c) yellow (d) magenta
  29. 29.🌈 Which hex code is red? (a) #ffffff (b) #000000 (c) #ff0000 (d) #ffff00
  30. 30.🌈 Which colour of light is strongest in rgb(82, 7, 175)? (a) red (b) green (c) blue
  31. 31.🌈 In #0000e2 the blue part is the hex number e2. What is it as a normal number?
  32. 32.🌈 Which colour is #ff00ff? (a) blue (b) bright green (c) magenta (d) black
  33. 33.🌈 Which colour of light is strongest in rgb(213, 79, 122)? (a) green (b) blue (c) red
  34. 34.🌈 Which hex code is black? (a) #000000 (b) #00ff00 (c) #ffff00 (d) #ff00ff
  35. 35.🌈 In #00a200 the green part is the hex number a2. What is it as a normal number?
  36. 36.🌈 In #005300 the green part is the hex number 53. What is it as a normal number?
  37. 37.🌈 Which colour is rgb(0, 0, 0)? (a) magenta (b) red (c) black (d) yellow
  38. 38.🌈 Which colour of light is strongest in rgb(244, 57, 104)? (a) green (b) red (c) blue
  39. 39.🌈 Which colour of light is strongest in rgb(110, 55, 154)? (a) red (b) blue (c) green
  40. 40.🌈 In #001e00 the green part is the hex number 1e. What is it as a normal number?

Answer key

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

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