← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 365 · 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 #003a00 the green part is the hex number 3a. What is it as a normal number?
  2. 2.🌈 Which colour is #00ffff? (a) bright green (b) red (c) magenta (d) cyan
  3. 3.🌈 Which colour is rgb(0, 0, 255)? (a) yellow (b) red (c) blue (d) white
  4. 4.🌈 In #rrggbb, which colour do the last two digits give? (a) blue (b) green (c) red (d) white
  5. 5.🌈 Which colour is #00ff00? (a) magenta (b) bright green (c) white (d) yellow
  6. 6.🌈 Which colour is rgb(0, 255, 255)? (a) magenta (b) cyan (c) bright green (d) black
  7. 7.🌈 Which colour is #ffffff? (a) red (b) bright green (c) white (d) cyan
  8. 8.🌈 Which colour of light is strongest in rgb(132, 140, 165)? (a) red (b) green (c) blue
  9. 9.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) Z (c) G (d) J
  10. 10.🌈 Which hex code is black? (a) #ffffff (b) #00ff00 (c) #0000ff (d) #000000
  11. 11.🌈 Which colour of light is strongest in rgb(212, 15, 46)? (a) red (b) green (c) blue
  12. 12.🌈 In #rrggbb, which colour do the first two digits give? (a) blue (b) black (c) green (d) red
  13. 13.🌈 In #000075 the blue part is the hex number 75. What is it as a normal number?
  14. 14.🌈 Which colour is #0000ff? (a) bright green (b) magenta (c) blue (d) red
  15. 15.🌈 In #e40000 the red part is the hex number e4. What is it as a normal number?
  16. 16.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 1000 (c) 255 (d) 99
  17. 17.🌈 Which colour is rgb(255, 0, 0)? (a) red (b) magenta (c) blue (d) bright green
  18. 18.🌈 Which colour is rgb(0, 0, 0)? (a) white (b) magenta (c) yellow (d) black
  19. 19.🌈 In #002c00 the green part is the hex number 2c. What is it as a normal number?
  20. 20.🌈 Which colour of light is strongest in rgb(177, 82, 35)? (a) red (b) green (c) blue
  21. 21.🌈 Which colour is rgb(0, 255, 0)? (a) red (b) yellow (c) bright green (d) white
  22. 22.🌈 In #010000 the red part is the hex number 01. What is it as a normal number?
  23. 23.🌈 Which colour of light is strongest in rgb(172, 78, 93)? (a) red (b) green (c) blue
  24. 24.🌈 In #830000 the red part is the hex number 83. What is it as a normal number?
  25. 25.🌈 Which hex code is bright green? (a) #00ffff (b) #ff0000 (c) #00ff00 (d) #ffffff
  26. 26.🌈 Which colour of light is strongest in rgb(251, 84, 120)? (a) green (b) red (c) blue
  27. 27.🌈 Which hex code is white? (a) #ff00ff (b) #000000 (c) #ffffff (d) #ff0000
  28. 28.🌈 In #000058 the blue part is the hex number 58. What is it as a normal number?
  29. 29.🌈 Which hex code is red? (a) #000000 (b) #ffff00 (c) #ff00ff (d) #ff0000
  30. 30.🌈 Which hex code is yellow? (a) #ffff00 (b) #ff0000 (c) #00ff00 (d) #000000
  31. 31.🌈 Which colour of light is strongest in rgb(160, 11, 12)? (a) blue (b) green (c) red
  32. 32.🌈 In #00a500 the green part is the hex number a5. What is it as a normal number?
  33. 33.🌈 Which colour is rgb(255, 255, 255)? (a) bright green (b) white (c) yellow (d) blue
  34. 34.🌈 Which hex code is cyan? (a) #00ffff (b) #000000 (c) #ff00ff (d) #0000ff
  35. 35.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 6 (b) 3 (c) 4 (d) 2
  36. 36.🌈 Which hex code is blue? (a) #000000 (b) #ff0000 (c) #0000ff (d) #00ff00
  37. 37.🌈 In #002100 the green part is the hex number 21. What is it as a normal number?
  38. 38.🌈 In #00001a the blue part is the hex number 1a. What is it as a normal number?
  39. 39.🌈 In #410000 the red part is the hex number 41. What is it as a normal number?
  40. 40.🌈 In #000067 the blue part is the hex number 67. What is it as a normal number?

Answer key

  1. 58
  2. cyan
  3. blue
  4. blue
  5. bright green
  6. cyan
  7. white
  8. blue
  9. F
  10. #000000
  11. red
  12. red
  13. 117
  14. blue
  15. 228
  16. 255
  17. red
  18. black
  19. 44
  20. red
  21. bright green
  22. 1
  23. red
  24. 131
  25. #00ff00
  26. red
  27. #ffffff
  28. 88
  29. #ff0000
  30. #ffff00
  31. red
  32. 165
  33. white
  34. #00ffff
  35. 3
  36. #0000ff
  37. 33
  38. 26
  39. 65
  40. 103

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