A method for determining colour correction parameters for a digital imaging device, the method comprising: obtaining sample transmission spectra of a set of colours by: generating a Gaussian distribution of wavelengths; and/or measuring sample transmission spectra of different colour targets and computing additional sample transmission spectra based on linear combinations of the measured spectra; simulating target and raw colour value pairs for a set of colours based on - the sample transmission spectra of the set of colours; and either i) - a sensitivity spectrum of a monochrome sensor of the digital imaging device; and - illumination spectra of different colours of a light source of the digital imaging device; or ii) - sensitivity spectra of pixels of different colours of a colour sensor of the digital imaging device; and - an illumination spectrum of a light source of the digital imaging device; determining a colour correction transformation for transforming the raw colour values to target colour values, wherein the colour correction transformation is parametrized by transformation parameters; and finding the transformation parameters for the colour correction transformation using an optimization problem. obtaining sample transmission spectra of a set of colours by: generating a Gaussian distribution of wavelengths; and/or measuring sample transmission spectra of different colour targets and computing additional sample transmission spectra based on linear combinations of the measured spectra; generating a Gaussian distribution of wavelengths; and/or measuring sample transmission spectra of different colour targets and computing additional sample transmission spectra based on linear combinations of the measured spectra; simulating target and raw colour value pairs for a set of colours based on - the sample transmission spectra of the set of colours; and either i) - a sensitivity spectrum of a monochrome sensor of the digital imaging device; and - illumination spectra of different colours of a light source of the digital imaging device; or ii) - sensitivity spectra of pixels of different colours of a colour sensor of the digital imaging device; and - an illumination spectrum of a light source of the digital imaging device; - the sample transmission spectra of the set of colours; and either i) - a sensitivity spectrum of a monochrome sensor of the digital imaging device; and - illumination spectra of different colours of a light source of the digital imaging device; or ii) - sensitivity spectra of pixels of different colours of a colour sensor of the digital imaging device; and i) - a sensitivity spectrum of a monochrome sensor of the digital imaging device; and - illumination spectra of different colours of a light source of the digital imaging device; or - illumination spectra of different colours of a light source of the digital imaging device; or ii) - sensitivity spectra of pixels of different colours of a colour sensor of the digital imaging device; and - an illumination spectrum of a light source of the digital imaging device; determining a colour correction transformation for transforming the raw colour values to target colour values, wherein the colour correction transformation is parametrized by transformation parameters; and finding the transformation parameters for the colour correction transformation using an optimization problem.