simplified code to use flat arrays of named colors instead of arrays of objects