CSS Worksheet: Hex and RGB Colours
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.🌈 Which colour of light is strongest in rgb(92, 196, 60)? (a) red (b) green (c) blue
- 2.🌈 Which colour is rgb(255, 255, 255)? (a) magenta (b) white (c) black (d) yellow
- 3.🌈 Which colour is rgb(0, 255, 0)? (a) red (b) yellow (c) bright green (d) white
- 4.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) Z (c) J (d) G
- 5.🌈 Which colour is #ffffff? (a) blue (b) red (c) white (d) black
- 6.🌈 Which colour of light is strongest in rgb(132, 174, 18)? (a) red (b) green (c) blue
- 7.🌈 Which colour of light is strongest in rgb(73, 57, 174)? (a) blue (b) red (c) green
- 8.🌈 Which colour is rgb(0, 255, 255)? (a) red (b) yellow (c) bright green (d) cyan
- 9.🌈 Which hex code is white? (a) #000000 (b) #ffffff (c) #00ffff (d) #00ff00
- 10.🌈 In #590000 the red part is the hex number 59. What is it as a normal number?
- 11.🌈 Which colour is #00ffff? (a) white (b) bright green (c) yellow (d) cyan
- 12.🌈 In #310000 the red part is the hex number 31. What is it as a normal number?
- 13.🌈 Which colour of light is strongest in rgb(128, 240, 69)? (a) blue (b) red (c) green
- 14.🌈 In #rrggbb, which colour do the first two digits give? (a) black (b) red (c) green (d) blue
- 15.🌈 Which colour of light is strongest in rgb(157, 60, 81)? (a) red (b) green (c) blue
- 16.🌈 Which hex code is bright green? (a) #ff0000 (b) #ff00ff (c) #ffffff (d) #00ff00
- 17.🌈 In #d00000 the red part is the hex number d0. What is it as a normal number?
- 18.🌈 Which colour is #0000ff? (a) magenta (b) red (c) black (d) blue
- 19.🌈 In #000053 the blue part is the hex number 53. What is it as a normal number?
- 20.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 1000 (c) 100 (d) 255
- 21.🌈 Which colour of light is strongest in rgb(222, 115, 106)? (a) green (b) blue (c) red
- 22.🌈 Which colour of light is strongest in rgb(115, 218, 32)? (a) red (b) blue (c) green
- 23.🌈 Which hex code is cyan? (a) #000000 (b) #ffffff (c) #00ffff (d) #00ff00
- 24.🌈 Which colour is #ff00ff? (a) blue (b) black (c) magenta (d) red
- 25.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) blue (c) green (d) red
- 26.🌈 Which hex code is yellow? (a) #ffff00 (b) #00ffff (c) #00ff00 (d) #ff00ff
- 27.🌈 In #450000 the red part is the hex number 45. What is it as a normal number?
- 28.🌈 Which hex code is red? (a) #ffff00 (b) #ff0000 (c) #00ffff (d) #ffffff
- 29.🌈 Which colour of light is strongest in rgb(137, 9, 247)? (a) green (b) red (c) blue
- 30.🌈 In #00d400 the green part is the hex number d4. What is it as a normal number?
- 31.🌈 In #0000cb the blue part is the hex number cb. What is it as a normal number?
- 32.🌈 In #b50000 the red part is the hex number b5. What is it as a normal number?
- 33.🌈 Which colour is rgb(0, 0, 255)? (a) cyan (b) blue (c) red (d) yellow
- 34.🌈 Which colour is rgb(255, 255, 0)? (a) yellow (b) magenta (c) bright green (d) cyan
- 35.🌈 Which colour is rgb(255, 0, 255)? (a) magenta (b) cyan (c) blue (d) yellow
- 36.🌈 In #010000 the red part is the hex number 01. What is it as a normal number?
- 37.🌈 In #000013 the blue part is the hex number 13. What is it as a normal number?
- 38.🌈 Which colour is #000000? (a) bright green (b) black (c) blue (d) yellow
- 39.🌈 In #00000d the blue part is the hex number 0d. What is it as a normal number?
- 40.🌈 Which colour of light is strongest in rgb(252, 27, 25)? (a) blue (b) green (c) red
Answer key
- green
- white
- bright green
- F
- white
- green
- blue
- cyan
- #ffffff
- 89
- cyan
- 49
- green
- red
- red
- #00ff00
- 208
- blue
- 83
- 255
- red
- green
- #00ffff
- magenta
- blue
- #ffff00
- 69
- #ff0000
- blue
- 212
- 203
- 181
- blue
- yellow
- magenta
- 1
- 19
- black
- 13
- red
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids