1. A computer-implemented method for converting a first color space to a second color space, comprising: generating a look-up table (LUT) using a non-square transformation matrix and a numerical solver, wherein the LUT comprises a target value in the first color space and an optimal value in the second color space; and using the LUT to convert the first color space to the second color space.