Color conversion functions.