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(104, 129, 152)? (a) blue (b) green (c) red
- 2.🌈 Which hex code is blue? (a) #00ffff (b) #0000ff (c) #ffff00 (d) #ff00ff
- 3.🌈 Which colour is #00ff00? (a) bright green (b) white (c) blue (d) black
- 4.🌈 Which colour of light is strongest in rgb(222, 33, 10)? (a) blue (b) green (c) red
- 5.🌈 Which colour is rgb(0, 0, 0)? (a) black (b) cyan (c) bright green (d) white
- 6.🌈 Which colour is rgb(255, 0, 255)? (a) red (b) magenta (c) cyan (d) yellow
- 7.🌈 Which colour of light is strongest in rgb(55, 127, 196)? (a) green (b) red (c) blue
- 8.🌈 Hex digits go 0 to 9, then A to which letter? (a) Z (b) F (c) G (d) J
- 9.🌈 Which colour of light is strongest in rgb(235, 94, 75)? (a) blue (b) green (c) red
- 10.🌈 Which colour of light is strongest in rgb(245, 49, 12)? (a) red (b) green (c) blue
- 11.🌈 Which colour of light is strongest in rgb(24, 30, 189)? (a) red (b) green (c) blue
- 12.🌈 Which colour of light is strongest in rgb(33, 68, 157)? (a) red (b) green (c) blue
- 13.🌈 Which colour is #ffffff? (a) bright green (b) magenta (c) cyan (d) white
- 14.🌈 Which colour is #ffff00? (a) white (b) bright green (c) yellow (d) magenta
- 15.🌈 In #rrggbb, which colour do the first two digits give? (a) green (b) blue (c) red (d) black
- 16.🌈 Which colour is #ff0000? (a) bright green (b) cyan (c) yellow (d) red
- 17.🌈 Which colour is rgb(0, 255, 0)? (a) cyan (b) bright green (c) white (d) blue
- 18.🌈 Which hex code is bright green? (a) #ffffff (b) #00ff00 (c) #000000 (d) #ff0000
- 19.🌈 Which hex code is red? (a) #000000 (b) #ff0000 (c) #ffffff (d) #00ff00
- 20.🌈 Which colour of light is strongest in rgb(109, 58, 255)? (a) blue (b) green (c) red
- 21.🌈 Which colour is rgb(255, 0, 0)? (a) red (b) bright green (c) yellow (d) blue
- 22.🌈 Which colour of light is strongest in rgb(50, 121, 158)? (a) red (b) blue (c) green
- 23.🌈 Which colour of light is strongest in rgb(154, 90, 37)? (a) green (b) blue (c) red
- 24.🌈 Which colour of light is strongest in rgb(110, 154, 6)? (a) red (b) blue (c) green
- 25.🌈 Which colour is rgb(255, 255, 0)? (a) bright green (b) blue (c) black (d) yellow
- 26.🌈 In #700000 the red part is the hex number 70. What is it as a normal number?
- 27.🌈 Which colour is #ff00ff? (a) magenta (b) black (c) red (d) cyan
- 28.🌈 Which colour of light is strongest in rgb(230, 135, 66)? (a) blue (b) green (c) red
- 29.🌈 Which colour of light is strongest in rgb(136, 251, 71)? (a) red (b) green (c) blue
- 30.🌈 Which colour of light is strongest in rgb(160, 115, 9)? (a) blue (b) green (c) red
- 31.🌈 Which colour is rgb(0, 0, 255)? (a) black (b) blue (c) yellow (d) magenta
- 32.🌈 In #00c100 the green part is the hex number c1. What is it as a normal number?
- 33.🌈 In #00a300 the green part is the hex number a3. What is it as a normal number?
- 34.🌈 In #rrggbb, which colour do the last two digits give? (a) green (b) red (c) blue (d) white
- 35.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 6 (b) 2 (c) 4 (d) 3
- 36.🌈 In #00003e the blue part is the hex number 3e. What is it as a normal number?
- 37.🌈 Which colour of light is strongest in rgb(120, 189, 87)? (a) blue (b) green (c) red
- 38.🌈 Which hex code is cyan? (a) #ffffff (b) #000000 (c) #0000ff (d) #00ffff
- 39.🌈 Which colour is #00ffff? (a) yellow (b) white (c) bright green (d) cyan
- 40.🌈 In #00006e the blue part is the hex number 6e. What is it as a normal number?
Answer key
- blue
- #0000ff
- bright green
- red
- black
- magenta
- blue
- F
- red
- red
- blue
- blue
- white
- yellow
- red
- red
- bright green
- #00ff00
- #ff0000
- blue
- red
- blue
- red
- green
- yellow
- 112
- magenta
- red
- green
- red
- blue
- 193
- 163
- blue
- 3
- 62
- green
- #00ffff
- cyan
- 110
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids