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, 0, 255)? (a) red (b) cyan (c) blue (d) yellow
- 2.🌈 Which colour is #ffffff? (a) yellow (b) red (c) white (d) black
- 3.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 2 (b) 4 (c) 6 (d) 3
- 4.🌈 In #rrggbb, which colour do the last two digits give? (a) green (b) red (c) white (d) blue
- 5.🌈 Which colour is #ffff00? (a) bright green (b) black (c) yellow (d) blue
- 6.🌈 Which colour is rgb(255, 0, 0)? (a) bright green (b) red (c) blue (d) magenta
- 7.🌈 Which colour of light is strongest in rgb(111, 231, 74)? (a) green (b) red (c) blue
- 8.🌈 Which colour of light is strongest in rgb(224, 2, 84)? (a) red (b) blue (c) green
- 9.🌈 Which hex code is red? (a) #ffffff (b) #00ffff (c) #ff0000 (d) #00ff00
- 10.🌈 Which hex code is black? (a) #00ff00 (b) #ffffff (c) #0000ff (d) #000000
- 11.🌈 Which colour is rgb(255, 0, 255)? (a) cyan (b) white (c) bright green (d) magenta
- 12.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) J (c) Z (d) G
- 13.🌈 Which colour of light is strongest in rgb(72, 78, 173)? (a) green (b) red (c) blue
- 14.🌈 Which colour is rgb(0, 255, 0)? (a) bright green (b) blue (c) cyan (d) red
- 15.🌈 Which colour is rgb(0, 255, 255)? (a) red (b) white (c) bright green (d) cyan
- 16.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) black (c) blue (d) green
- 17.🌈 Which colour is #ff00ff? (a) white (b) red (c) magenta (d) cyan
- 18.🌈 Which hex code is yellow? (a) #00ffff (b) #ffffff (c) #0000ff (d) #ffff00
- 19.🌈 Which colour of light is strongest in rgb(34, 110, 178)? (a) blue (b) red (c) green
- 20.🌈 Which colour is #00ffff? (a) yellow (b) cyan (c) white (d) red
- 21.🌈 Which colour of light is strongest in rgb(112, 186, 120)? (a) green (b) blue (c) red
- 22.🌈 Which colour of light is strongest in rgb(93, 156, 21)? (a) green (b) blue (c) red
- 23.🌈 Which colour of light is strongest in rgb(13, 3, 184)? (a) green (b) blue (c) red
- 24.🌈 Which colour is rgb(255, 255, 0)? (a) white (b) black (c) yellow (d) blue
- 25.🌈 Which colour of light is strongest in rgb(209, 84, 58)? (a) blue (b) green (c) red
- 26.🌈 Which colour of light is strongest in rgb(208, 96, 39)? (a) green (b) blue (c) red
- 27.🌈 Which colour of light is strongest in rgb(4, 209, 3)? (a) green (b) red (c) blue
- 28.🌈 In #890000 the red part is the hex number 89. What is it as a normal number?
- 29.🌈 Which colour is rgb(255, 255, 255)? (a) magenta (b) white (c) bright green (d) black
- 30.🌈 Which colour of light is strongest in rgb(133, 57, 229)? (a) green (b) blue (c) red
- 31.🌈 In #00ad00 the green part is the hex number ad. What is it as a normal number?
- 32.🌈 Which hex code is white? (a) #00ffff (b) #000000 (c) #ff0000 (d) #ffffff
- 33.🌈 In #00003d the blue part is the hex number 3d. What is it as a normal number?
- 34.🌈 Which colour is rgb(0, 0, 0)? (a) black (b) white (c) bright green (d) yellow
- 35.🌈 Which hex code is blue? (a) #0000ff (b) #ffffff (c) #ff0000 (d) #000000
- 36.🌈 Which colour is #0000ff? (a) blue (b) red (c) magenta (d) cyan
- 37.🌈 Which colour of light is strongest in rgb(41, 205, 36)? (a) green (b) red (c) blue
- 38.🌈 Which colour is #00ff00? (a) white (b) bright green (c) yellow (d) blue
- 39.🌈 Which colour of light is strongest in rgb(45, 183, 95)? (a) red (b) green (c) blue
- 40.🌈 In #00b500 the green part is the hex number b5. What is it as a normal number?
Answer key
- blue
- white
- 3
- blue
- yellow
- red
- green
- red
- #ff0000
- #000000
- magenta
- F
- blue
- bright green
- cyan
- red
- magenta
- #ffff00
- blue
- cyan
- green
- green
- blue
- yellow
- red
- red
- green
- 137
- white
- blue
- 173
- #ffffff
- 61
- black
- #0000ff
- blue
- green
- bright green
- green
- 181
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids