← Colours: hex and rgb lesson New set →

CSS Worksheet: Hex and RGB Colours

HTML and CSS lesson 15: Colours: hex and rgb · Set 47 · 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 #ffff00? (a) white (b) cyan (c) magenta (d) yellow
  2. 2.🌈 Which colour is rgb(0, 0, 255)? (a) black (b) magenta (c) blue (d) red
  3. 3.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 6 (b) 2 (c) 3 (d) 4
  4. 4.🌈 In #000051 the blue part is the hex number 51. What is it as a normal number?
  5. 5.🌈 Which colour is #00ff00? (a) white (b) red (c) black (d) bright green
  6. 6.🌈 Which colour is #ff0000? (a) blue (b) black (c) white (d) red
  7. 7.🌈 Which colour of light is strongest in rgb(250, 89, 45)? (a) blue (b) green (c) red
  8. 8.🌈 Which colour is rgb(0, 0, 0)? (a) black (b) cyan (c) red (d) white
  9. 9.🌈 What is the biggest number one colour can have in rgb()? (a) 255 (b) 100 (c) 1000 (d) 99
  10. 10.🌈 Which colour of light is strongest in rgb(76, 69, 197)? (a) blue (b) red (c) green
  11. 11.🌈 Which hex code is cyan? (a) #ff00ff (b) #ffff00 (c) #00ff00 (d) #00ffff
  12. 12.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) G (c) Z (d) J
  13. 13.🌈 Which hex code is magenta? (a) #ff00ff (b) #00ffff (c) #00ff00 (d) #0000ff
  14. 14.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) green (c) blue (d) black
  15. 15.🌈 Which colour of light is strongest in rgb(19, 201, 16)? (a) red (b) blue (c) green
  16. 16.🌈 Which hex code is blue? (a) #ff0000 (b) #00ffff (c) #0000ff (d) #00ff00
  17. 17.🌈 Which colour is rgb(255, 0, 255)? (a) red (b) magenta (c) black (d) cyan
  18. 18.🌈 Which colour of light is strongest in rgb(222, 76, 95)? (a) red (b) green (c) blue
  19. 19.🌈 In #00b100 the green part is the hex number b1. What is it as a normal number?
  20. 20.🌈 Which colour of light is strongest in rgb(87, 41, 151)? (a) blue (b) green (c) red
  21. 21.🌈 In #000006 the blue part is the hex number 06. What is it as a normal number?
  22. 22.🌈 Which hex code is white? (a) #0000ff (b) #00ffff (c) #ffff00 (d) #ffffff
  23. 23.🌈 Which hex code is black? (a) #000000 (b) #ffffff (c) #ff0000 (d) #0000ff
  24. 24.🌈 Which hex code is yellow? (a) #ffff00 (b) #ff00ff (c) #00ffff (d) #ff0000
  25. 25.🌈 In #110000 the red part is the hex number 11. What is it as a normal number?
  26. 26.🌈 Which colour is rgb(0, 255, 255)? (a) red (b) blue (c) bright green (d) cyan
  27. 27.🌈 In #00003e the blue part is the hex number 3e. What is it as a normal number?
  28. 28.🌈 In #440000 the red part is the hex number 44. What is it as a normal number?
  29. 29.🌈 Which colour is rgb(255, 0, 0)? (a) yellow (b) magenta (c) red (d) white
  30. 30.🌈 Which colour of light is strongest in rgb(28, 154, 49)? (a) blue (b) green (c) red
  31. 31.🌈 In #0000e8 the blue part is the hex number e8. What is it as a normal number?
  32. 32.🌈 Which colour of light is strongest in rgb(176, 27, 116)? (a) blue (b) green (c) red
  33. 33.🌈 Which colour of light is strongest in rgb(138, 220, 72)? (a) blue (b) green (c) red
  34. 34.🌈 In #340000 the red part is the hex number 34. What is it as a normal number?
  35. 35.🌈 In #f20000 the red part is the hex number f2. What is it as a normal number?
  36. 36.🌈 Which colour is rgb(255, 255, 255)? (a) magenta (b) red (c) white (d) cyan
  37. 37.🌈 Which colour is #00ffff? (a) cyan (b) yellow (c) bright green (d) red
  38. 38.🌈 In #650000 the red part is the hex number 65. What is it as a normal number?
  39. 39.🌈 Which colour of light is strongest in rgb(45, 10, 214)? (a) blue (b) green (c) red
  40. 40.🌈 Which colour of light is strongest in rgb(20, 242, 19)? (a) blue (b) red (c) green

Answer key

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

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