Color converter solution; working version.