← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 190 · 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, 0, 0)? (a) blue (b) magenta (c) yellow (d) red
  2. 2.🌈 Which colour of light is strongest in rgb(192, 99, 7)? (a) green (b) blue (c) red
  3. 3.🌈 Which colour of light is strongest in rgb(138, 139, 154)? (a) green (b) blue (c) red
  4. 4.🌈 Which hex code is magenta? (a) #ff00ff (b) #00ffff (c) #ffff00 (d) #00ff00
  5. 5.🌈 In #000011 the blue part is the hex number 11. What is it as a normal number?
  6. 6.🌈 In #00009f the blue part is the hex number 9f. What is it as a normal number?
  7. 7.🌈 Which colour is rgb(255, 0, 255)? (a) cyan (b) magenta (c) red (d) blue
  8. 8.🌈 Which hex code is white? (a) #ffffff (b) #0000ff (c) #00ffff (d) #ff00ff
  9. 9.🌈 Which hex code is red? (a) #ff0000 (b) #ff00ff (c) #ffffff (d) #00ffff
  10. 10.🌈 Which colour of light is strongest in rgb(113, 180, 91)? (a) green (b) red (c) blue
  11. 11.🌈 In #00cd00 the green part is the hex number cd. What is it as a normal number?
  12. 12.🌈 Which colour is #0000ff? (a) white (b) blue (c) yellow (d) cyan
  13. 13.🌈 Which colour is #ffff00? (a) cyan (b) yellow (c) black (d) magenta
  14. 14.🌈 In #rrggbb, which colour do the first two digits give? (a) green (b) red (c) blue (d) black
  15. 15.🌈 Which colour is #00ff00? (a) black (b) white (c) red (d) bright green
  16. 16.🌈 Which colour is rgb(0, 255, 0)? (a) red (b) cyan (c) blue (d) bright green
  17. 17.🌈 In #00b200 the green part is the hex number b2. What is it as a normal number?
  18. 18.🌈 Which hex code is black? (a) #ffff00 (b) #0000ff (c) #ff0000 (d) #000000
  19. 19.🌈 In #770000 the red part is the hex number 77. What is it as a normal number?
  20. 20.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) G (c) Z (d) F
  21. 21.🌈 Which colour is rgb(0, 0, 255)? (a) cyan (b) black (c) white (d) blue
  22. 22.🌈 Which colour is #00ffff? (a) cyan (b) blue (c) yellow (d) magenta
  23. 23.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) green (c) blue (d) red
  24. 24.🌈 Which colour is #ffffff? (a) magenta (b) red (c) bright green (d) white
  25. 25.🌈 Which hex code is bright green? (a) #00ff00 (b) #ff0000 (c) #000000 (d) #0000ff
  26. 26.🌈 In #000017 the blue part is the hex number 17. What is it as a normal number?
  27. 27.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 4 (b) 6 (c) 2 (d) 3
  28. 28.🌈 Which colour is #ff0000? (a) magenta (b) bright green (c) white (d) red
  29. 29.🌈 In #000051 the blue part is the hex number 51. What is it as a normal number?
  30. 30.🌈 In #00ce00 the green part is the hex number ce. What is it as a normal number?
  31. 31.🌈 Which colour is rgb(255, 255, 255)? (a) magenta (b) cyan (c) blue (d) white
  32. 32.🌈 What is the biggest number one colour can have in rgb()? (a) 255 (b) 100 (c) 1000 (d) 99
  33. 33.🌈 Which colour is rgb(255, 255, 0)? (a) yellow (b) bright green (c) white (d) magenta
  34. 34.🌈 In #000100 the green part is the hex number 01. What is it as a normal number?
  35. 35.🌈 Which colour of light is strongest in rgb(38, 239, 50)? (a) red (b) green (c) blue
  36. 36.🌈 Which colour of light is strongest in rgb(216, 70, 15)? (a) blue (b) green (c) red
  37. 37.🌈 Which colour of light is strongest in rgb(166, 3, 56)? (a) green (b) red (c) blue
  38. 38.🌈 Which colour is rgb(0, 255, 255)? (a) black (b) blue (c) red (d) cyan
  39. 39.🌈 Which colour of light is strongest in rgb(48, 236, 52)? (a) green (b) red (c) blue
  40. 40.🌈 Which hex code is cyan? (a) #ff00ff (b) #ffffff (c) #00ff00 (d) #00ffff

Answer key

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

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