Converting dimensions to color