A computer-implemented method for converting a first color space to a second color space is provided. The method includes 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.