make a functions for convert color to array and vice-versa