← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 286 · 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(186, 11, 119)? (a) blue (b) red (c) green
  2. 2.🌈 Which colour is #ffffff? (a) bright green (b) blue (c) cyan (d) white
  3. 3.🌈 Which colour is #00ff00? (a) cyan (b) bright green (c) blue (d) red
  4. 4.🌈 What is the biggest number one colour can have in rgb()? (a) 1000 (b) 100 (c) 99 (d) 255
  5. 5.🌈 Which colour of light is strongest in rgb(222, 48, 23)? (a) red (b) blue (c) green
  6. 6.🌈 Which hex code is black? (a) #00ff00 (b) #ffffff (c) #0000ff (d) #000000
  7. 7.🌈 Which colour of light is strongest in rgb(19, 189, 19)? (a) blue (b) red (c) green
  8. 8.🌈 Which colour is rgb(0, 0, 0)? (a) black (b) bright green (c) white (d) cyan
  9. 9.🌈 In #003f00 the green part is the hex number 3f. What is it as a normal number?
  10. 10.🌈 Which colour is rgb(0, 255, 0)? (a) bright green (b) blue (c) yellow (d) red
  11. 11.🌈 Which colour of light is strongest in rgb(201, 117, 31)? (a) green (b) red (c) blue
  12. 12.🌈 Which colour is rgb(255, 255, 255)? (a) red (b) cyan (c) white (d) bright green
  13. 13.🌈 In #rrggbb, which colour do the last two digits give? (a) green (b) white (c) red (d) blue
  14. 14.🌈 Which colour is #ff00ff? (a) yellow (b) magenta (c) white (d) red
  15. 15.🌈 Which hex code is red? (a) #0000ff (b) #000000 (c) #00ffff (d) #ff0000
  16. 16.🌈 Which colour is #ff0000? (a) red (b) yellow (c) blue (d) black
  17. 17.🌈 Which colour is #ffff00? (a) blue (b) cyan (c) bright green (d) yellow
  18. 18.🌈 Which colour of light is strongest in rgb(89, 158, 6)? (a) blue (b) red (c) green
  19. 19.🌈 Which colour is #0000ff? (a) bright green (b) yellow (c) white (d) blue
  20. 20.🌈 Which colour of light is strongest in rgb(153, 55, 10)? (a) blue (b) red (c) green
  21. 21.🌈 In #rrggbb, which colour do the first two digits give? (a) blue (b) green (c) black (d) red
  22. 22.🌈 In #a30000 the red part is the hex number a3. What is it as a normal number?
  23. 23.🌈 Which colour of light is strongest in rgb(169, 115, 135)? (a) blue (b) green (c) red
  24. 24.🌈 Which hex code is white? (a) #ffffff (b) #ff0000 (c) #ffff00 (d) #000000
  25. 25.🌈 In #001100 the green part is the hex number 11. What is it as a normal number?
  26. 26.🌈 Which hex code is cyan? (a) #00ff00 (b) #ff0000 (c) #ff00ff (d) #00ffff
  27. 27.🌈 Which colour is rgb(255, 0, 0)? (a) black (b) blue (c) bright green (d) red
  28. 28.🌈 Which colour of light is strongest in rgb(61, 150, 37)? (a) blue (b) red (c) green
  29. 29.🌈 Hex digits go 0 to 9, then A to which letter? (a) G (b) J (c) Z (d) F
  30. 30.🌈 Which colour of light is strongest in rgb(113, 35, 202)? (a) red (b) blue (c) green
  31. 31.🌈 Which colour is rgb(0, 0, 255)? (a) blue (b) bright green (c) magenta (d) yellow
  32. 32.🌈 Which colour of light is strongest in rgb(136, 242, 44)? (a) blue (b) green (c) red
  33. 33.🌈 Which colour of light is strongest in rgb(111, 31, 159)? (a) red (b) green (c) blue
  34. 34.🌈 Which hex code is magenta? (a) #000000 (b) #00ffff (c) #ff00ff (d) #00ff00
  35. 35.🌈 Which colour of light is strongest in rgb(60, 172, 63)? (a) blue (b) red (c) green
  36. 36.🌈 Which hex code is bright green? (a) #00ffff (b) #ff0000 (c) #ffff00 (d) #00ff00
  37. 37.🌈 Which hex code is yellow? (a) #00ff00 (b) #ffff00 (c) #00ffff (d) #ff0000
  38. 38.🌈 In #00bc00 the green part is the hex number bc. What is it as a normal number?
  39. 39.🌈 Which colour of light is strongest in rgb(212, 30, 28)? (a) blue (b) green (c) red
  40. 40.🌈 Which colour of light is strongest in rgb(46, 227, 20)? (a) green (b) blue (c) red

Answer key

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

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