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 is rgb(0, 255, 0)? (a) bright green (b) magenta (c) red (d) blue
- 2.🌈 In #00c700 the green part is the hex number c7. What is it as a normal number?
- 3.🌈 Which colour of light is strongest in rgb(48, 205, 108)? (a) red (b) blue (c) green
- 4.🌈 Which colour is #000000? (a) red (b) cyan (c) bright green (d) black
- 5.🌈 Hex digits go 0 to 9, then A to which letter? (a) Z (b) J (c) F (d) G
- 6.🌈 Which colour of light is strongest in rgb(154, 118, 106)? (a) red (b) blue (c) green
- 7.🌈 Which colour is #00ffff? (a) cyan (b) white (c) red (d) black
- 8.🌈 Which colour is #ffffff? (a) black (b) magenta (c) cyan (d) white
- 9.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) blue (c) black (d) green
- 10.🌈 Which hex code is blue? (a) #ffffff (b) #0000ff (c) #00ff00 (d) #ffff00
- 11.🌈 Which colour is #0000ff? (a) bright green (b) magenta (c) yellow (d) blue
- 12.🌈 Which colour of light is strongest in rgb(24, 120, 198)? (a) blue (b) green (c) red
- 13.🌈 In #340000 the red part is the hex number 34. What is it as a normal number?
- 14.🌈 Which colour is #ff00ff? (a) black (b) red (c) bright green (d) magenta
- 15.🌈 In #002f00 the green part is the hex number 2f. What is it as a normal number?
- 16.🌈 Which hex code is cyan? (a) #ffffff (b) #00ffff (c) #00ff00 (d) #ff00ff
- 17.🌈 Which colour is rgb(255, 0, 0)? (a) red (b) bright green (c) white (d) cyan
- 18.🌈 In #rrggbb, which colour do the last two digits give? (a) green (b) blue (c) white (d) red
- 19.🌈 Which colour is #ff0000? (a) bright green (b) red (c) magenta (d) white
- 20.🌈 Which colour of light is strongest in rgb(213, 19, 47)? (a) red (b) green (c) blue
- 21.🌈 In #130000 the red part is the hex number 13. What is it as a normal number?
- 22.🌈 In #003000 the green part is the hex number 30. What is it as a normal number?
- 23.🌈 In #000006 the blue part is the hex number 06. What is it as a normal number?
- 24.🌈 Which colour is rgb(255, 255, 255)? (a) white (b) bright green (c) cyan (d) blue
- 25.🌈 Which hex code is black? (a) #ff00ff (b) #00ffff (c) #000000 (d) #ffffff
- 26.🌈 Which colour is rgb(255, 0, 255)? (a) magenta (b) red (c) black (d) bright green
- 27.🌈 In #00003a the blue part is the hex number 3a. What is it as a normal number?
- 28.🌈 Which colour of light is strongest in rgb(2, 165, 28)? (a) green (b) blue (c) red
- 29.🌈 In #300000 the red part is the hex number 30. What is it as a normal number?
- 30.🌈 Which colour is #ffff00? (a) black (b) yellow (c) red (d) white
- 31.🌈 In #004200 the green part is the hex number 42. What is it as a normal number?
- 32.🌈 Which hex code is magenta? (a) #ff0000 (b) #00ffff (c) #ff00ff (d) #00ff00
- 33.🌈 Which colour of light is strongest in rgb(4, 215, 131)? (a) green (b) blue (c) red
- 34.🌈 Which colour of light is strongest in rgb(117, 169, 66)? (a) green (b) blue (c) red
- 35.🌈 In #0000e3 the blue part is the hex number e3. What is it as a normal number?
- 36.🌈 Which colour of light is strongest in rgb(120, 25, 158)? (a) red (b) green (c) blue
- 37.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 255 (c) 100 (d) 1000
- 38.🌈 In #000083 the blue part is the hex number 83. What is it as a normal number?
- 39.🌈 Which colour is #00ff00? (a) yellow (b) blue (c) white (d) bright green
- 40.🌈 Which colour of light is strongest in rgb(133, 45, 191)? (a) red (b) green (c) blue
Answer key
- bright green
- 199
- green
- black
- F
- red
- cyan
- white
- red
- #0000ff
- blue
- blue
- 52
- magenta
- 47
- #00ffff
- red
- blue
- red
- red
- 19
- 48
- 6
- white
- #000000
- magenta
- 58
- green
- 48
- yellow
- 66
- #ff00ff
- green
- green
- 227
- blue
- 255
- 131
- bright green
- blue
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids