← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 196 · 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(101, 157, 42)? (a) blue (b) red (c) green
  2. 2.🌈 In #rrggbb, which colour do the last two digits give? (a) green (b) white (c) blue (d) red
  3. 3.🌈 Which colour of light is strongest in rgb(213, 93, 1)? (a) blue (b) green (c) red
  4. 4.🌈 Which colour is rgb(0, 255, 255)? (a) cyan (b) yellow (c) black (d) magenta
  5. 5.🌈 Which colour of light is strongest in rgb(78, 190, 108)? (a) green (b) blue (c) red
  6. 6.🌈 Which hex code is cyan? (a) #ffffff (b) #000000 (c) #00ffff (d) #0000ff
  7. 7.🌈 Which hex code is red? (a) #00ffff (b) #0000ff (c) #ff0000 (d) #00ff00
  8. 8.🌈 Which hex code is white? (a) #ffff00 (b) #000000 (c) #ffffff (d) #ff0000
  9. 9.🌈 Which colour of light is strongest in rgb(54, 229, 131)? (a) green (b) blue (c) red
  10. 10.🌈 Which hex code is yellow? (a) #00ff00 (b) #ffffff (c) #ffff00 (d) #000000
  11. 11.🌈 What is the biggest number one colour can have in rgb()? (a) 255 (b) 100 (c) 99 (d) 1000
  12. 12.🌈 Which colour is rgb(255, 0, 0)? (a) red (b) bright green (c) white (d) yellow
  13. 13.🌈 In #dc0000 the red part is the hex number dc. What is it as a normal number?
  14. 14.🌈 In #000037 the blue part is the hex number 37. What is it as a normal number?
  15. 15.🌈 In #000034 the blue part is the hex number 34. What is it as a normal number?
  16. 16.🌈 In #000009 the blue part is the hex number 09. What is it as a normal number?
  17. 17.🌈 Which colour is #00ff00? (a) bright green (b) yellow (c) blue (d) red
  18. 18.🌈 Which colour is #ffff00? (a) black (b) yellow (c) bright green (d) red
  19. 19.🌈 In #008a00 the green part is the hex number 8a. What is it as a normal number?
  20. 20.🌈 Which colour is rgb(255, 0, 255)? (a) blue (b) black (c) red (d) magenta
  21. 21.🌈 Which colour is #ff00ff? (a) white (b) blue (c) cyan (d) magenta
  22. 22.🌈 In #002200 the green part is the hex number 22. What is it as a normal number?
  23. 23.🌈 Which hex code is blue? (a) #000000 (b) #00ff00 (c) #0000ff (d) #ffff00
  24. 24.🌈 Which colour of light is strongest in rgb(110, 37, 254)? (a) red (b) blue (c) green
  25. 25.🌈 Which colour of light is strongest in rgb(200, 75, 136)? (a) green (b) blue (c) red
  26. 26.🌈 Which colour of light is strongest in rgb(210, 25, 26)? (a) blue (b) green (c) red
  27. 27.🌈 Which colour is #00ffff? (a) red (b) white (c) cyan (d) blue
  28. 28.🌈 In #f40000 the red part is the hex number f4. What is it as a normal number?
  29. 29.🌈 Which colour is rgb(0, 0, 0)? (a) blue (b) white (c) red (d) black
  30. 30.🌈 Which hex code is black? (a) #ff0000 (b) #000000 (c) #ffffff (d) #0000ff
  31. 31.🌈 Which colour is #0000ff? (a) yellow (b) blue (c) white (d) red
  32. 32.🌈 In #rrggbb, which colour do the first two digits give? (a) black (b) blue (c) red (d) green
  33. 33.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 2 (b) 4 (c) 3 (d) 6
  34. 34.🌈 Which colour of light is strongest in rgb(48, 254, 58)? (a) red (b) green (c) blue
  35. 35.🌈 In #0000be the blue part is the hex number be. What is it as a normal number?
  36. 36.🌈 In #006300 the green part is the hex number 63. What is it as a normal number?
  37. 37.🌈 Which colour is #ff0000? (a) blue (b) black (c) magenta (d) red
  38. 38.🌈 Which colour of light is strongest in rgb(0, 46, 240)? (a) green (b) red (c) blue
  39. 39.🌈 Which colour of light is strongest in rgb(193, 108, 139)? (a) green (b) blue (c) red
  40. 40.🌈 Which colour is #ffffff? (a) white (b) red (c) cyan (d) magenta

Answer key

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

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