← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 325 · 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 is rgb(255, 255, 255)? (a) red (b) white (c) magenta (d) black
  2. 2.🌈 Which colour of light is strongest in rgb(177, 84, 55)? (a) blue (b) red (c) green
  3. 3.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) black (c) green (d) blue
  4. 4.🌈 Which colour is #ffff00? (a) white (b) cyan (c) yellow (d) black
  5. 5.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 2 (b) 4 (c) 6 (d) 3
  6. 6.🌈 Which colour of light is strongest in rgb(52, 103, 211)? (a) blue (b) red (c) green
  7. 7.🌈 Which colour is #ff00ff? (a) red (b) black (c) magenta (d) bright green
  8. 8.🌈 Which hex code is cyan? (a) #ffffff (b) #00ff00 (c) #00ffff (d) #ffff00
  9. 9.🌈 Which colour of light is strongest in rgb(69, 152, 37)? (a) green (b) blue (c) red
  10. 10.🌈 Which colour is rgb(0, 255, 0)? (a) cyan (b) red (c) bright green (d) yellow
  11. 11.🌈 Which colour of light is strongest in rgb(9, 20, 211)? (a) red (b) green (c) blue
  12. 12.🌈 Which colour is #ffffff? (a) bright green (b) magenta (c) white (d) black
  13. 13.🌈 Which colour is #ff0000? (a) bright green (b) black (c) red (d) cyan
  14. 14.🌈 Which colour of light is strongest in rgb(214, 102, 112)? (a) red (b) blue (c) green
  15. 15.🌈 Which hex code is magenta? (a) #00ff00 (b) #00ffff (c) #ff0000 (d) #ff00ff
  16. 16.🌈 Which colour of light is strongest in rgb(161, 51, 20)? (a) blue (b) green (c) red
  17. 17.🌈 Hex digits go 0 to 9, then A to which letter? (a) G (b) Z (c) F (d) J
  18. 18.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 1000 (c) 255 (d) 99
  19. 19.🌈 In #0000ce the blue part is the hex number ce. What is it as a normal number?
  20. 20.🌈 Which colour is #0000ff? (a) white (b) blue (c) red (d) bright green
  21. 21.🌈 In #rrggbb, which colour do the last two digits give? (a) blue (b) white (c) red (d) green
  22. 22.🌈 In #4c0000 the red part is the hex number 4c. What is it as a normal number?
  23. 23.🌈 Which hex code is black? (a) #000000 (b) #ff00ff (c) #00ff00 (d) #ff0000
  24. 24.🌈 Which colour is rgb(255, 255, 0)? (a) red (b) cyan (c) bright green (d) yellow
  25. 25.🌈 Which colour of light is strongest in rgb(152, 14, 72)? (a) blue (b) green (c) red
  26. 26.🌈 In #000072 the blue part is the hex number 72. What is it as a normal number?
  27. 27.🌈 Which colour of light is strongest in rgb(88, 97, 244)? (a) red (b) blue (c) green
  28. 28.🌈 Which colour of light is strongest in rgb(113, 150, 75)? (a) red (b) blue (c) green
  29. 29.🌈 In #0000e6 the blue part is the hex number e6. What is it as a normal number?
  30. 30.🌈 Which hex code is bright green? (a) #ff00ff (b) #ff0000 (c) #ffffff (d) #00ff00
  31. 31.🌈 In #00da00 the green part is the hex number da. What is it as a normal number?
  32. 32.🌈 Which colour is #00ff00? (a) white (b) cyan (c) red (d) bright green
  33. 33.🌈 Which colour of light is strongest in rgb(12, 25, 170)? (a) red (b) blue (c) green
  34. 34.🌈 In #240000 the red part is the hex number 24. What is it as a normal number?
  35. 35.🌈 Which colour of light is strongest in rgb(57, 175, 43)? (a) blue (b) red (c) green
  36. 36.🌈 Which colour is rgb(0, 0, 255)? (a) magenta (b) bright green (c) cyan (d) blue
  37. 37.🌈 In #000034 the blue part is the hex number 34. What is it as a normal number?
  38. 38.🌈 Which hex code is blue? (a) #0000ff (b) #ffff00 (c) #00ffff (d) #ffffff
  39. 39.🌈 In #000059 the blue part is the hex number 59. What is it as a normal number?
  40. 40.🌈 Which colour of light is strongest in rgb(140, 194, 114)? (a) blue (b) green (c) red

Answer key

  1. white
  2. red
  3. red
  4. yellow
  5. 3
  6. blue
  7. magenta
  8. #00ffff
  9. green
  10. bright green
  11. blue
  12. white
  13. red
  14. red
  15. #ff00ff
  16. red
  17. F
  18. 255
  19. 206
  20. blue
  21. blue
  22. 76
  23. #000000
  24. yellow
  25. red
  26. 114
  27. blue
  28. green
  29. 230
  30. #00ff00
  31. 218
  32. bright green
  33. blue
  34. 36
  35. green
  36. blue
  37. 52
  38. #0000ff
  39. 89
  40. green

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