change color levels to opacity levels