Color conversion for test framework.