← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 347 · 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.🌈 What is the biggest number one colour can have in rgb()? (a) 1000 (b) 99 (c) 255 (d) 100
  2. 2.🌈 Which colour is rgb(0, 0, 255)? (a) white (b) yellow (c) red (d) blue
  3. 3.🌈 Which colour is rgb(255, 255, 0)? (a) black (b) red (c) yellow (d) cyan
  4. 4.🌈 Which hex code is black? (a) #ffffff (b) #000000 (c) #ffff00 (d) #ff0000
  5. 5.🌈 Which colour is rgb(0, 255, 0)? (a) black (b) bright green (c) magenta (d) yellow
  6. 6.🌈 Which hex code is yellow? (a) #ffff00 (b) #00ffff (c) #ff00ff (d) #000000
  7. 7.🌈 Which hex code is cyan? (a) #0000ff (b) #00ff00 (c) #ff0000 (d) #00ffff
  8. 8.🌈 Which colour of light is strongest in rgb(114, 132, 247)? (a) blue (b) red (c) green
  9. 9.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) J (c) Z (d) G
  10. 10.🌈 In #290000 the red part is the hex number 29. What is it as a normal number?
  11. 11.🌈 Which colour of light is strongest in rgb(185, 135, 88)? (a) blue (b) red (c) green
  12. 12.🌈 Which colour of light is strongest in rgb(92, 77, 204)? (a) red (b) blue (c) green
  13. 13.🌈 In #rrggbb, which colour do the first two digits give? (a) green (b) blue (c) black (d) red
  14. 14.🌈 Which colour is #ff0000? (a) blue (b) cyan (c) red (d) magenta
  15. 15.🌈 Which colour is #000000? (a) yellow (b) magenta (c) red (d) black
  16. 16.🌈 Which colour of light is strongest in rgb(210, 0, 78)? (a) blue (b) red (c) green
  17. 17.🌈 Which colour is rgb(255, 255, 255)? (a) magenta (b) red (c) white (d) cyan
  18. 18.🌈 Which colour is #ffff00? (a) black (b) red (c) yellow (d) magenta
  19. 19.🌈 Which colour of light is strongest in rgb(90, 133, 210)? (a) green (b) blue (c) red
  20. 20.🌈 Which hex code is white? (a) #000000 (b) #0000ff (c) #ff00ff (d) #ffffff
  21. 21.🌈 Which colour of light is strongest in rgb(150, 58, 57)? (a) green (b) blue (c) red
  22. 22.🌈 Which colour is #00ff00? (a) white (b) bright green (c) red (d) black
  23. 23.🌈 Which colour of light is strongest in rgb(182, 72, 34)? (a) red (b) green (c) blue
  24. 24.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 6 (b) 2 (c) 4 (d) 3
  25. 25.🌈 Which colour of light is strongest in rgb(254, 15, 125)? (a) green (b) blue (c) red
  26. 26.🌈 Which colour of light is strongest in rgb(220, 46, 132)? (a) green (b) red (c) blue
  27. 27.🌈 In #rrggbb, which colour do the last two digits give? (a) red (b) white (c) blue (d) green
  28. 28.🌈 Which colour is #00ffff? (a) magenta (b) cyan (c) yellow (d) red
  29. 29.🌈 In #0000bf the blue part is the hex number bf. What is it as a normal number?
  30. 30.🌈 Which colour is rgb(0, 0, 0)? (a) white (b) blue (c) black (d) cyan
  31. 31.🌈 Which colour is #ffffff? (a) magenta (b) red (c) blue (d) white
  32. 32.🌈 In #9a0000 the red part is the hex number 9a. What is it as a normal number?
  33. 33.🌈 In #00e700 the green part is the hex number e7. What is it as a normal number?
  34. 34.🌈 Which hex code is red? (a) #ff0000 (b) #00ff00 (c) #ffff00 (d) #ffffff
  35. 35.🌈 In #00a800 the green part is the hex number a8. What is it as a normal number?
  36. 36.🌈 Which colour is rgb(255, 0, 0)? (a) bright green (b) black (c) yellow (d) red
  37. 37.🌈 In #000094 the blue part is the hex number 94. What is it as a normal number?
  38. 38.🌈 Which colour of light is strongest in rgb(154, 67, 106)? (a) red (b) blue (c) green
  39. 39.🌈 Which colour is #ff00ff? (a) white (b) magenta (c) bright green (d) black
  40. 40.🌈 In #005300 the green part is the hex number 53. What is it as a normal number?

Answer key

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

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