Add a color to rgb conversion function and use it.