B CUSP 110C – Digital Thinking Homework 4: Colors
and Binary Numbers 

Colors And Binary Numbers
Goals: Reading color representations and Practice with
Binary/Decimal number representations
Dark Gray

Light
Gray 
Black

White

Redish

Greenish

Blueish

1. (180, 40, 40)
2. (40, 180, 40)
3. (40, 40, 180)
4. (0, 0, 0)
5. (180, 180, 180)
6. (30, 30, 30)
7. (255, 255, 255): White
A. Convert decimal 125 to binary:
Num Being Converted 
125 








Place Value 
256 
128 
64 
32 
16 
8 
4 
2 
1 
Subtract 









Binary Num 









B. Convert decimal 387 to binary
Num Being Converted 
387 








Place Value 
256 
128 
64 
32 
16 
8 
4 
2 
1 
Subtract 









Binary Num 









C. In class we have seen that 1101_{2} (read: 1101base2) has a decimal value of 13. What is the decimal value of
a. 1001_{2}
b. 100101_{2}
c. 1101101_{2}
D. What are the sums for the following binary numbers (hint: convert to decimal to verify your answers), express your answers in binary.
a. 1001_{2 }+ 1001_{2}
b. 1001_{2 }+ 100101_{2}
c. 100101_{2 }+ 1101101_{2}
In this homework assignment you have practice reading (RGB) color representation in both floating point and integer. You have also practiced decimal to binary conversion and performing addition with binary numbers.