← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 134 · 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 hex code is black? (a) #000000 (b) #ff0000 (c) #ffff00 (d) #00ffff
  2. 2.🌈 Which colour is #0000ff? (a) yellow (b) blue (c) white (d) red
  3. 3.🌈 Which colour is #00ff00? (a) magenta (b) yellow (c) bright green (d) white
  4. 4.🌈 In #0e0000 the red part is the hex number 0e. What is it as a normal number?
  5. 5.🌈 Which colour is rgb(255, 0, 0)? (a) white (b) blue (c) yellow (d) red
  6. 6.🌈 Which colour is rgb(0, 255, 0)? (a) black (b) red (c) yellow (d) bright green
  7. 7.🌈 Which colour is #ff00ff? (a) magenta (b) yellow (c) black (d) cyan
  8. 8.🌈 Which hex code is cyan? (a) #000000 (b) #00ffff (c) #ffff00 (d) #ff00ff
  9. 9.🌈 Which colour of light is strongest in rgb(221, 130, 22)? (a) green (b) red (c) blue
  10. 10.🌈 In #002600 the green part is the hex number 26. What is it as a normal number?
  11. 11.🌈 In #008800 the green part is the hex number 88. What is it as a normal number?
  12. 12.🌈 Which colour is #00ffff? (a) black (b) yellow (c) red (d) cyan
  13. 13.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 100 (c) 255 (d) 1000
  14. 14.🌈 Which colour of light is strongest in rgb(123, 252, 57)? (a) green (b) blue (c) red
  15. 15.🌈 Which colour is rgb(255, 255, 0)? (a) yellow (b) blue (c) black (d) red
  16. 16.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 2 (b) 4 (c) 6 (d) 3
  17. 17.🌈 Which colour of light is strongest in rgb(155, 85, 1)? (a) green (b) red (c) blue
  18. 18.🌈 Which colour of light is strongest in rgb(110, 62, 236)? (a) blue (b) green (c) red
  19. 19.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) F (c) Z (d) G
  20. 20.🌈 Which colour is #ff0000? (a) bright green (b) red (c) cyan (d) magenta
  21. 21.🌈 In #rrggbb, which colour do the last two digits give? (a) blue (b) red (c) green (d) white
  22. 22.🌈 Which colour is #ffff00? (a) black (b) white (c) yellow (d) red
  23. 23.🌈 Which colour is rgb(255, 0, 255)? (a) bright green (b) yellow (c) magenta (d) black
  24. 24.🌈 Which colour of light is strongest in rgb(223, 113, 58)? (a) blue (b) green (c) red
  25. 25.🌈 Which colour is #000000? (a) yellow (b) white (c) cyan (d) black
  26. 26.🌈 In #230000 the red part is the hex number 23. What is it as a normal number?
  27. 27.🌈 Which colour of light is strongest in rgb(25, 13, 242)? (a) green (b) blue (c) red
  28. 28.🌈 Which colour of light is strongest in rgb(72, 30, 226)? (a) red (b) green (c) blue
  29. 29.🌈 In #rrggbb, which colour do the first two digits give? (a) blue (b) green (c) red (d) black
  30. 30.🌈 Which colour of light is strongest in rgb(150, 134, 102)? (a) blue (b) red (c) green
  31. 31.🌈 Which colour of light is strongest in rgb(227, 70, 5)? (a) green (b) red (c) blue
  32. 32.🌈 In #0a0000 the red part is the hex number 0a. What is it as a normal number?
  33. 33.🌈 Which colour of light is strongest in rgb(72, 108, 159)? (a) green (b) blue (c) red
  34. 34.🌈 Which hex code is red? (a) #0000ff (b) #ff0000 (c) #ff00ff (d) #ffff00
  35. 35.🌈 Which colour of light is strongest in rgb(48, 223, 98)? (a) blue (b) red (c) green
  36. 36.🌈 In #000034 the blue part is the hex number 34. What is it as a normal number?
  37. 37.🌈 Which colour is #ffffff? (a) red (b) yellow (c) blue (d) white
  38. 38.🌈 Which colour is rgb(0, 0, 0)? (a) black (b) white (c) yellow (d) blue
  39. 39.🌈 In #0000f2 the blue part is the hex number f2. What is it as a normal number?
  40. 40.🌈 Which colour of light is strongest in rgb(5, 118, 232)? (a) red (b) green (c) blue

Answer key

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

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