← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 284 · 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(63, 55, 161)? (a) red (b) green (c) blue
  2. 2.🌈 In #rrggbb, which colour do the last two digits give? (a) red (b) white (c) blue (d) green
  3. 3.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 99 (c) 255 (d) 1000
  4. 4.🌈 Which colour is rgb(0, 255, 255)? (a) bright green (b) cyan (c) magenta (d) red
  5. 5.🌈 Which colour is #00ff00? (a) bright green (b) cyan (c) magenta (d) white
  6. 6.🌈 Which colour of light is strongest in rgb(240, 69, 29)? (a) red (b) blue (c) green
  7. 7.🌈 Which hex code is cyan? (a) #ff0000 (b) #00ff00 (c) #ffffff (d) #00ffff
  8. 8.🌈 In #0000c2 the blue part is the hex number c2. What is it as a normal number?
  9. 9.🌈 Which colour is rgb(0, 0, 0)? (a) cyan (b) magenta (c) black (d) bright green
  10. 10.🌈 Which colour is rgb(255, 0, 0)? (a) bright green (b) red (c) magenta (d) cyan
  11. 11.🌈 Which colour is #ff0000? (a) white (b) blue (c) red (d) cyan
  12. 12.🌈 In #0000f4 the blue part is the hex number f4. What is it as a normal number?
  13. 13.🌈 In #4f0000 the red part is the hex number 4f. What is it as a normal number?
  14. 14.🌈 Which colour of light is strongest in rgb(1, 114, 196)? (a) red (b) green (c) blue
  15. 15.🌈 Which hex code is yellow? (a) #ff0000 (b) #000000 (c) #00ffff (d) #ffff00
  16. 16.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) G (c) Z (d) F
  17. 17.🌈 In #rrggbb, which colour do the first two digits give? (a) black (b) red (c) blue (d) green
  18. 18.🌈 Which colour of light is strongest in rgb(58, 87, 193)? (a) red (b) blue (c) green
  19. 19.🌈 Which colour of light is strongest in rgb(68, 14, 226)? (a) red (b) blue (c) green
  20. 20.🌈 Which colour is #0000ff? (a) magenta (b) cyan (c) blue (d) black
  21. 21.🌈 Which colour is #00ffff? (a) cyan (b) white (c) blue (d) red
  22. 22.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 6 (b) 4 (c) 3 (d) 2
  23. 23.🌈 In #00ce00 the green part is the hex number ce. What is it as a normal number?
  24. 24.🌈 Which colour is rgb(0, 255, 0)? (a) white (b) bright green (c) red (d) magenta
  25. 25.🌈 Which hex code is white? (a) #ff00ff (b) #ffffff (c) #00ffff (d) #000000
  26. 26.🌈 Which colour is #ffff00? (a) blue (b) yellow (c) magenta (d) cyan
  27. 27.🌈 Which colour of light is strongest in rgb(81, 46, 196)? (a) red (b) blue (c) green
  28. 28.🌈 Which hex code is blue? (a) #00ff00 (b) #000000 (c) #ffffff (d) #0000ff
  29. 29.🌈 In #00ad00 the green part is the hex number ad. What is it as a normal number?
  30. 30.🌈 In #00004a the blue part is the hex number 4a. What is it as a normal number?
  31. 31.🌈 In #0000ef the blue part is the hex number ef. What is it as a normal number?
  32. 32.🌈 Which colour is rgb(0, 0, 255)? (a) white (b) blue (c) bright green (d) magenta
  33. 33.🌈 Which hex code is magenta? (a) #00ff00 (b) #ff00ff (c) #ff0000 (d) #ffff00
  34. 34.🌈 In #00db00 the green part is the hex number db. What is it as a normal number?
  35. 35.🌈 Which hex code is bright green? (a) #ff00ff (b) #00ffff (c) #00ff00 (d) #ff0000
  36. 36.🌈 Which colour of light is strongest in rgb(194, 35, 113)? (a) green (b) red (c) blue
  37. 37.🌈 Which colour is rgb(255, 255, 255)? (a) bright green (b) black (c) yellow (d) white
  38. 38.🌈 In #003d00 the green part is the hex number 3d. What is it as a normal number?
  39. 39.🌈 Which colour is rgb(255, 0, 255)? (a) bright green (b) cyan (c) yellow (d) magenta
  40. 40.🌈 Which hex code is red? (a) #ffffff (b) #ff0000 (c) #00ffff (d) #00ff00

Answer key

  1. blue
  2. blue
  3. 255
  4. cyan
  5. bright green
  6. red
  7. #00ffff
  8. 194
  9. black
  10. red
  11. red
  12. 244
  13. 79
  14. blue
  15. #ffff00
  16. F
  17. red
  18. blue
  19. blue
  20. blue
  21. cyan
  22. 3
  23. 206
  24. bright green
  25. #ffffff
  26. yellow
  27. blue
  28. #0000ff
  29. 173
  30. 74
  31. 239
  32. blue
  33. #ff00ff
  34. 219
  35. #00ff00
  36. red
  37. white
  38. 61
  39. magenta
  40. #ff0000

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