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(159, 139, 54)? (a) green (b) blue (c) red
- 2.🌈 Which hex code is yellow? (a) #0000ff (b) #ff00ff (c) #ffff00 (d) #ffffff
- 3.🌈 Which hex code is magenta? (a) #000000 (b) #0000ff (c) #ff0000 (d) #ff00ff
- 4.🌈 Which colour is rgb(255, 255, 255)? (a) magenta (b) white (c) blue (d) bright green
- 5.🌈 Which colour is #00ff00? (a) bright green (b) red (c) blue (d) white
- 6.🌈 Which colour is #ffff00? (a) black (b) blue (c) white (d) yellow
- 7.🌈 Which colour is rgb(0, 255, 0)? (a) bright green (b) white (c) black (d) cyan
- 8.🌈 Which colour of light is strongest in rgb(85, 179, 28)? (a) blue (b) red (c) green
- 9.🌈 In #006e00 the green part is the hex number 6e. What is it as a normal number?
- 10.🌈 Which colour is rgb(255, 255, 0)? (a) bright green (b) red (c) black (d) yellow
- 11.🌈 Which hex code is bright green? (a) #ffffff (b) #00ff00 (c) #0000ff (d) #ff00ff
- 12.🌈 In #0000ea the blue part is the hex number ea. What is it as a normal number?
- 13.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) blue (c) green (d) red
- 14.🌈 Which colour is #ff00ff? (a) cyan (b) magenta (c) white (d) blue
- 15.🌈 In #500000 the red part is the hex number 50. What is it as a normal number?
- 16.🌈 Which colour of light is strongest in rgb(253, 23, 61)? (a) green (b) blue (c) red
- 17.🌈 Which colour is #ffffff? (a) bright green (b) cyan (c) blue (d) white
- 18.🌈 Which colour of light is strongest in rgb(13, 40, 207)? (a) green (b) red (c) blue
- 19.🌈 Which colour of light is strongest in rgb(124, 236, 136)? (a) red (b) green (c) blue
- 20.🌈 In #0000bc the blue part is the hex number bc. What is it as a normal number?
- 21.🌈 Which hex code is red? (a) #ffff00 (b) #0000ff (c) #ff0000 (d) #00ff00
- 22.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) black (c) blue (d) green
- 23.🌈 Which colour of light is strongest in rgb(20, 67, 157)? (a) red (b) blue (c) green
- 24.🌈 Which colour of light is strongest in rgb(174, 110, 52)? (a) green (b) blue (c) red
- 25.🌈 Which colour of light is strongest in rgb(134, 10, 196)? (a) green (b) red (c) blue
- 26.🌈 Which hex code is white? (a) #00ffff (b) #ffffff (c) #ff00ff (d) #00ff00
- 27.🌈 Which colour of light is strongest in rgb(0, 239, 7)? (a) red (b) green (c) blue
- 28.🌈 Which colour is #00ffff? (a) cyan (b) blue (c) yellow (d) magenta
- 29.🌈 In #a10000 the red part is the hex number a1. What is it as a normal number?
- 30.🌈 In #00005d the blue part is the hex number 5d. What is it as a normal number?
- 31.🌈 Which hex code is blue? (a) #ffff00 (b) #00ff00 (c) #ffffff (d) #0000ff
- 32.🌈 In #870000 the red part is the hex number 87. What is it as a normal number?
- 33.🌈 Which colour of light is strongest in rgb(181, 75, 12)? (a) red (b) blue (c) green
- 34.🌈 Which colour of light is strongest in rgb(218, 99, 106)? (a) red (b) green (c) blue
- 35.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 99 (c) 255 (d) 1000
- 36.🌈 Which colour is #000000? (a) white (b) black (c) cyan (d) blue
- 37.🌈 In #3b0000 the red part is the hex number 3b. What is it as a normal number?
- 38.🌈 In #004700 the green part is the hex number 47. What is it as a normal number?
- 39.🌈 In #00000e the blue part is the hex number 0e. What is it as a normal number?
- 40.🌈 In #e90000 the red part is the hex number e9. What is it as a normal number?
Answer key
- red
- #ffff00
- #ff00ff
- white
- bright green
- yellow
- bright green
- green
- 110
- yellow
- #00ff00
- 234
- blue
- magenta
- 80
- red
- white
- blue
- green
- 188
- #ff0000
- red
- blue
- red
- blue
- #ffffff
- green
- cyan
- 161
- 93
- #0000ff
- 135
- red
- red
- 255
- black
- 59
- 71
- 14
- 233
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids