Why some things have a certain color

Think of atoms like bricks in a wall (chemical compound). Imagine throwing a ball into the wall. If the wall is smooth or has sharp corners, the ball may jump back in different directions.