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(195, 49, 125)? (a) blue (b) red (c) green
- 2.🌈 Which colour of light is strongest in rgb(24, 229, 131)? (a) red (b) green (c) blue
- 3.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) black (c) green (d) blue
- 4.🌈 Which colour is #00ff00? (a) blue (b) white (c) black (d) bright green
- 5.🌈 Which colour of light is strongest in rgb(192, 23, 109)? (a) blue (b) green (c) red
- 6.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) J (c) Z (d) G
- 7.🌈 Which colour of light is strongest in rgb(135, 154, 66)? (a) red (b) blue (c) green
- 8.🌈 Which hex code is bright green? (a) #ff0000 (b) #ffffff (c) #000000 (d) #00ff00
- 9.🌈 Which colour of light is strongest in rgb(172, 22, 138)? (a) blue (b) green (c) red
- 10.🌈 Which colour of light is strongest in rgb(119, 213, 90)? (a) blue (b) red (c) green
- 11.🌈 In #00f400 the green part is the hex number f4. What is it as a normal number?
- 12.🌈 Which hex code is yellow? (a) #000000 (b) #ffff00 (c) #00ff00 (d) #ff0000
- 13.🌈 Which colour is #ffff00? (a) blue (b) yellow (c) white (d) magenta
- 14.🌈 In #6c0000 the red part is the hex number 6c. What is it as a normal number?
- 15.🌈 Which hex code is cyan? (a) #00ffff (b) #0000ff (c) #ffffff (d) #ffff00
- 16.🌈 Which hex code is magenta? (a) #ffffff (b) #ffff00 (c) #ff00ff (d) #00ff00
- 17.🌈 Which colour is #00ffff? (a) cyan (b) bright green (c) blue (d) yellow
- 18.🌈 Which colour of light is strongest in rgb(60, 95, 245)? (a) green (b) blue (c) red
- 19.🌈 In #000080 the blue part is the hex number 80. What is it as a normal number?
- 20.🌈 Which colour is rgb(0, 0, 255)? (a) cyan (b) blue (c) yellow (d) bright green
- 21.🌈 Which colour is #ffffff? (a) red (b) black (c) white (d) yellow
- 22.🌈 Which colour is #ff0000? (a) magenta (b) red (c) bright green (d) white
- 23.🌈 In #009200 the green part is the hex number 92. What is it as a normal number?
- 24.🌈 In #00bb00 the green part is the hex number bb. What is it as a normal number?
- 25.🌈 In #000008 the blue part is the hex number 08. What is it as a normal number?
- 26.🌈 Which colour of light is strongest in rgb(237, 10, 40)? (a) blue (b) red (c) green
- 27.🌈 Which colour of light is strongest in rgb(53, 162, 103)? (a) green (b) red (c) blue
- 28.🌈 Which hex code is blue? (a) #000000 (b) #ffffff (c) #0000ff (d) #ffff00
- 29.🌈 Which colour is rgb(255, 0, 0)? (a) magenta (b) red (c) white (d) yellow
- 30.🌈 Which colour is #0000ff? (a) bright green (b) black (c) blue (d) cyan
- 31.🌈 Which colour is rgb(255, 255, 0)? (a) black (b) yellow (c) magenta (d) cyan
- 32.🌈 Which colour of light is strongest in rgb(28, 244, 96)? (a) blue (b) red (c) green
- 33.🌈 Which colour of light is strongest in rgb(38, 161, 58)? (a) red (b) green (c) blue
- 34.🌈 Which colour is rgb(0, 255, 255)? (a) cyan (b) red (c) bright green (d) yellow
- 35.🌈 In #000097 the blue part is the hex number 97. What is it as a normal number?
- 36.🌈 In #000070 the blue part is the hex number 70. What is it as a normal number?
- 37.🌈 Which colour of light is strongest in rgb(65, 117, 226)? (a) green (b) red (c) blue
- 38.🌈 What is the biggest number one colour can have in rgb()? (a) 255 (b) 1000 (c) 99 (d) 100
- 39.🌈 Which colour is #000000? (a) red (b) bright green (c) black (d) white
- 40.🌈 In #210000 the red part is the hex number 21. What is it as a normal number?
Answer key
- red
- green
- red
- bright green
- red
- F
- green
- #00ff00
- red
- green
- 244
- #ffff00
- yellow
- 108
- #00ffff
- #ff00ff
- cyan
- blue
- 128
- blue
- white
- red
- 146
- 187
- 8
- red
- green
- #0000ff
- red
- blue
- yellow
- green
- green
- cyan
- 151
- 112
- blue
- 255
- black
- 33
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids