In the print window, choose “Save as PDF” as the printer (or print it on paper). Seed 1 rebuilds this exact sheet.
Showing 10 problems, seed 1.
Name Date
Color Code worksheet
Grades 8–9
Calcapedia
Solve each problem and show your work. Round answers to 2 decimal places where needed.
1.
Problem 1.
Convert from:RGB
Red:60
Green:130
Blue:250
Find: HEX
Answer
2.
Problem 2.
Convert from:RGB
Red:46
Green:120
Blue:180
Find: HEX
Answer
3.
Problem 3.
Convert from:HSL
Hue:200 °
Saturation:78%
Lightness:44%
Find: HEX
Answer
4.
Problem 4.
Convert from:HSL
Hue:175 °
Saturation:70%
Lightness:50%
Find: HEX
Answer
5.
Problem 5.
Convert from:HSL
Hue:300 °
Saturation:55%
Lightness:55%
Find: HEX
Answer
6.
Problem 6.
Convert from:HSL
Hue:240 °
Saturation:66%
Lightness:50%
Find: HEX
Answer
7.
Problem 7.
Convert from:RGB
Red:64
Green:115
Blue:200
Find: HEX
Answer
8.
Problem 8.
Convert from:HEX
HEX code:#1A1BD4
Find: RGB
Answer
9.
Problem 9.
Convert from:HSL
Hue:200 °
Saturation:60%
Lightness:60%
Find: HEX
Answer
10.
Problem 10.
Convert from:HEX
HEX code:#6A5BD8
Find: RGB
Answer
Answer key: Color Code worksheet
Calcapedia
1. HEX: #3C82FA
Write each channel in base 16, as HEX codes do: divide by 16 for the first digit and keep the remainder for the second
Put the three hex pairs together after #
Find how bright the color looks (its luminance L). Undo the screen's brightness curve, then weight red 0.2126, green 0.7152, blue 0.0722, since eyes see green as brightest
Compare with white, whose luminance is 1. Add 0.05 to both and divide the lighter by the darker
Compare with black, whose luminance is 0, the same way
2. HEX: #2E78B4
Write each channel in base 16, as HEX codes do: divide by 16 for the first digit and keep the remainder for the second
Put the three hex pairs together after #
Find how bright the color looks (its luminance L). Undo the screen's brightness curve, then weight red 0.2126, green 0.7152, blue 0.0722, since eyes see green as brightest
Compare with white, whose luminance is 1. Add 0.05 to both and divide the lighter by the darker
Compare with black, whose luminance is 0, the same way
3. HEX: #198DC8
Find the chroma C, how far the strongest channel is from the weakest. It uses lightness L and saturation S as fractions
Find X, the middle channel, from the hue H. Also find m, the amount that lifts every channel to the right lightness
Hue 200° falls in the 180°–240° slice of the color wheel. That sets which channel gets C, X and 0. Add m to each, then multiply by 255 for the 0 to 255 scale
Write each channel in base 16, as HEX codes do: divide by 16 for the first digit and keep the remainder for the second
Put the three hex pairs together after #
Find how bright the color looks (its luminance L). Undo the screen's brightness curve, then weight red 0.2126, green 0.7152, blue 0.0722, since eyes see green as brightest
Compare with white, whose luminance is 1. Add 0.05 to both and divide the lighter by the darker
Compare with black, whose luminance is 0, the same way
4. HEX: #26D9CA
Find the chroma C, how far the strongest channel is from the weakest. It uses lightness L and saturation S as fractions
Find X, the middle channel, from the hue H. Also find m, the amount that lifts every channel to the right lightness
Hue 175° falls in the 120°–180° slice of the color wheel. That sets which channel gets C, X and 0. Add m to each, then multiply by 255 for the 0 to 255 scale
Write each channel in base 16, as HEX codes do: divide by 16 for the first digit and keep the remainder for the second
Put the three hex pairs together after #
Find how bright the color looks (its luminance L). Undo the screen's brightness curve, then weight red 0.2126, green 0.7152, blue 0.0722, since eyes see green as brightest
Compare with white, whose luminance is 1. Add 0.05 to both and divide the lighter by the darker
Compare with black, whose luminance is 0, the same way
5. HEX: #CB4DCB
Find the chroma C, how far the strongest channel is from the weakest. It uses lightness L and saturation S as fractions
Find X, the middle channel, from the hue H. Also find m, the amount that lifts every channel to the right lightness
Hue 300° falls in the 300°–360° slice of the color wheel. That sets which channel gets C, X and 0. Add m to each, then multiply by 255 for the 0 to 255 scale
Write each channel in base 16, as HEX codes do: divide by 16 for the first digit and keep the remainder for the second
Put the three hex pairs together after #
Find how bright the color looks (its luminance L). Undo the screen's brightness curve, then weight red 0.2126, green 0.7152, blue 0.0722, since eyes see green as brightest
Compare with white, whose luminance is 1. Add 0.05 to both and divide the lighter by the darker
Compare with black, whose luminance is 0, the same way
6. HEX: #2B2BD4
Find the chroma C, how far the strongest channel is from the weakest. It uses lightness L and saturation S as fractions
Find X, the middle channel, from the hue H. Also find m, the amount that lifts every channel to the right lightness
Hue 240° falls in the 240°–300° slice of the color wheel. That sets which channel gets C, X and 0. Add m to each, then multiply by 255 for the 0 to 255 scale
Write each channel in base 16, as HEX codes do: divide by 16 for the first digit and keep the remainder for the second
Put the three hex pairs together after #
Find how bright the color looks (its luminance L). Undo the screen's brightness curve, then weight red 0.2126, green 0.7152, blue 0.0722, since eyes see green as brightest
Compare with white, whose luminance is 1. Add 0.05 to both and divide the lighter by the darker
Compare with black, whose luminance is 0, the same way
7. HEX: #4073C8
Write each channel in base 16, as HEX codes do: divide by 16 for the first digit and keep the remainder for the second
Put the three hex pairs together after #
Find how bright the color looks (its luminance L). Undo the screen's brightness curve, then weight red 0.2126, green 0.7152, blue 0.0722, since eyes see green as brightest
Compare with white, whose luminance is 1. Add 0.05 to both and divide the lighter by the darker
Compare with black, whose luminance is 0, the same way
8. RGB: rgb(26, 27, 212)
Red: the hex pair 1A is 1 sixteens plus A ones (A = 10 … F = 15)
Green: the hex pair 1B is 1 sixteens plus B ones (A = 10 … F = 15)
Blue: the hex pair D4 is D sixteens plus 4 ones (A = 10 … F = 15)
Put the three channels together
Find how bright the color looks (its luminance L). Undo the screen's brightness curve, then weight red 0.2126, green 0.7152, blue 0.0722, since eyes see green as brightest
Compare with white, whose luminance is 1. Add 0.05 to both and divide the lighter by the darker
Compare with black, whose luminance is 0, the same way
9. HEX: #5CADD6
Find the chroma C, how far the strongest channel is from the weakest. It uses lightness L and saturation S as fractions
Find X, the middle channel, from the hue H. Also find m, the amount that lifts every channel to the right lightness
Hue 200° falls in the 180°–240° slice of the color wheel. That sets which channel gets C, X and 0. Add m to each, then multiply by 255 for the 0 to 255 scale
Write each channel in base 16, as HEX codes do: divide by 16 for the first digit and keep the remainder for the second
Put the three hex pairs together after #
Find how bright the color looks (its luminance L). Undo the screen's brightness curve, then weight red 0.2126, green 0.7152, blue 0.0722, since eyes see green as brightest
Compare with white, whose luminance is 1. Add 0.05 to both and divide the lighter by the darker
Compare with black, whose luminance is 0, the same way
10. RGB: rgb(106, 91, 216)
Red: the hex pair 6A is 6 sixteens plus A ones (A = 10 … F = 15)
Green: the hex pair 5B is 5 sixteens plus B ones (A = 10 … F = 15)
Blue: the hex pair D8 is D sixteens plus 8 ones (A = 10 … F = 15)
Put the three channels together
Find how bright the color looks (its luminance L). Undo the screen's brightness curve, then weight red 0.2126, green 0.7152, blue 0.0722, since eyes see green as brightest
Compare with white, whose luminance is 1. Add 0.05 to both and divide the lighter by the darker
Compare with black, whose luminance is 0, the same way