Techniques for adjusting a color gamut

Techniques that can be used to provide color space conversion for images and videos for a display color gamut are described. Some techniques provide access to an sRGB color gamut color table, the determination of a color conversion matrix based on the sRGB gamut color table and chroma values of RGBW primaries and gamma values stored on the display or connected to the display, the application of color space conversion to the Pixel by pixel using the color conversion matrix and applying linear correction of the pixels by applying a normalization factor to the color conversion matrix. In addition, some techniques provide an analysis of the content gamut in terms of display gamut in HSV space, HSV space customization, and conversion back to RGB space before color space conversion is applied.