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 #ff0000? (a) magenta (b) cyan (c) blue (d) red
- 2.🌈 Which colour is #000000? (a) bright green (b) blue (c) black (d) red
- 3.🌈 What is the biggest number one colour can have in rgb()? (a) 255 (b) 100 (c) 99 (d) 1000
- 4.🌈 In #rrggbb, which colour do the last two digits give? (a) red (b) white (c) green (d) blue
- 5.🌈 Which colour is rgb(255, 255, 0)? (a) cyan (b) magenta (c) blue (d) yellow
- 6.🌈 Which colour is #00ffff? (a) magenta (b) blue (c) bright green (d) cyan
- 7.🌈 Which colour of light is strongest in rgb(253, 124, 24)? (a) blue (b) red (c) green
- 8.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 3 (b) 4 (c) 2 (d) 6
- 9.🌈 Which colour is rgb(255, 0, 0)? (a) white (b) bright green (c) red (d) blue
- 10.🌈 Which hex code is blue? (a) #000000 (b) #00ffff (c) #0000ff (d) #ffff00
- 11.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) blue (c) black (d) green
- 12.🌈 Which colour is rgb(0, 255, 255)? (a) cyan (b) magenta (c) red (d) white
- 13.🌈 Which colour is #00ff00? (a) black (b) cyan (c) blue (d) bright green
- 14.🌈 Which hex code is cyan? (a) #ff00ff (b) #00ffff (c) #ffff00 (d) #ff0000
- 15.🌈 Which colour of light is strongest in rgb(11, 236, 139)? (a) blue (b) green (c) red
- 16.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) F (c) Z (d) G
- 17.🌈 Which colour of light is strongest in rgb(178, 42, 44)? (a) blue (b) green (c) red
- 18.🌈 Which colour is rgb(255, 0, 255)? (a) bright green (b) red (c) magenta (d) black
- 19.🌈 Which colour of light is strongest in rgb(45, 30, 152)? (a) red (b) blue (c) green
- 20.🌈 Which colour is rgb(255, 255, 255)? (a) black (b) white (c) yellow (d) cyan
- 21.🌈 Which colour of light is strongest in rgb(175, 75, 33)? (a) blue (b) green (c) red
- 22.🌈 In #ee0000 the red part is the hex number ee. What is it as a normal number?
- 23.🌈 Which colour of light is strongest in rgb(134, 179, 79)? (a) blue (b) green (c) red
- 24.🌈 In #00001c the blue part is the hex number 1c. What is it as a normal number?
- 25.🌈 Which colour of light is strongest in rgb(150, 23, 117)? (a) green (b) blue (c) red
- 26.🌈 Which colour of light is strongest in rgb(248, 114, 24)? (a) blue (b) red (c) green
- 27.🌈 Which colour of light is strongest in rgb(203, 86, 122)? (a) blue (b) red (c) green
- 28.🌈 Which colour is #ffff00? (a) yellow (b) bright green (c) cyan (d) white
- 29.🌈 Which colour of light is strongest in rgb(112, 55, 224)? (a) blue (b) green (c) red
- 30.🌈 Which colour of light is strongest in rgb(26, 230, 63)? (a) red (b) green (c) blue
- 31.🌈 Which colour is rgb(0, 0, 0)? (a) black (b) yellow (c) blue (d) white
- 32.🌈 Which colour is #ff00ff? (a) white (b) black (c) magenta (d) cyan
- 33.🌈 Which hex code is red? (a) #00ffff (b) #000000 (c) #ff0000 (d) #ffffff
- 34.🌈 In #00f200 the green part is the hex number f2. What is it as a normal number?
- 35.🌈 Which colour of light is strongest in rgb(234, 121, 115)? (a) blue (b) green (c) red
- 36.🌈 Which colour is #0000ff? (a) blue (b) yellow (c) cyan (d) red
- 37.🌈 Which hex code is bright green? (a) #00ff00 (b) #0000ff (c) #000000 (d) #00ffff
- 38.🌈 In #710000 the red part is the hex number 71. What is it as a normal number?
- 39.🌈 Which colour of light is strongest in rgb(83, 113, 151)? (a) green (b) blue (c) red
- 40.🌈 Which colour of light is strongest in rgb(254, 117, 77)? (a) green (b) blue (c) red
Answer key
- red
- black
- 255
- blue
- yellow
- cyan
- red
- 3
- red
- #0000ff
- red
- cyan
- bright green
- #00ffff
- green
- F
- red
- magenta
- blue
- white
- red
- 238
- green
- 28
- red
- red
- red
- yellow
- blue
- green
- black
- magenta
- #ff0000
- 242
- red
- blue
- #00ff00
- 113
- blue
- red
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids