RGB Vs CMYK : Deciphering gradient transitions in different colour modes
This issue may be related to Photoshop or to colour modes in general but this is what I am trying to figure out.
- The image below is from a CMYK file with two layers.
- It has two duo colour gradients.
Both gradients start and end with exactly the same hex value colours.
The top gradient is one generated from in the open file using the gradient swatch shown in the image.
The bottom gradient is copied from an RGB file and pasted into the CMYK file displayed in the image.
The CMYK gradient clearly does not match the expected output indicted on the colour swatch.
Why does the CMYK gradient appear to have an orange transition and not match either the output expected or that of the RGB gradient?
How can the true gradient be created in photoshop from within a CMYK file?
Its interesting to note that this does not appear to be a colour palette issue as the same thing occurs when a black to white alpha channel is created on top of a pure red layer.
The hex values used for this gradient are:
RECREATE THIS ISSUE
These steps create the issue.
- Create new file in CMYK mode.
- Draw a gradient on on the left side of the image. (gradient appears orange in middle as top gradient in image above.)
- Convert to RGB mode.
- Draw the same gradient on the right of the image. (There is a clear difference in the gradient transition.)
This was confusing at first but the striving for information has led me to a clearer understanding.
RGB vs CMYK
There is clear discrepency between gradients in RGB and CMYK this becomes clearer when you realise the palettes used by each colour mode are drasitcally different.
Colour consists of HUE, SATURATION and BRIGHNESS
RGB uses a single HUE pallete that transitions through BRIGHTNESS (y-axis in this image) and SATURATION (x-axis in this image)
CMYK uses a single BRIGHTNESS palette that transitions through HUE and SATURATION
As a result of the transition through the different palettes indicated by the blue arrows create a completely different gradient even though it is still a linear one for the palette that is in use.
RGB and CMYK are two different colour spaces. RGB is meant to represent the colours that can be produced with light using Red, Green and Blue dots. CMYK is way more limited. It is meant to represent colours that can be created with ink, but not with any ink but specifically mixing Cyan, Magenta, Yellow and Black.
The RGB space and the CMYK space have different gamuts. This means that there are colours that can be represented with RGB that cannot be represented with CMYK. Not every colour you can see on the screen can be printed using CMYK inks. Some are impossible to print.
The opposite is true as well, although to a lesser extent. A few CMYK colours are impossible to represent in RGB.
When you set PS to CMYK mode, it restricts itself to work within the gamut of CMYK. This means that when you modify the colours it only creates results that can be printed, not colours outside the gamut. In particular, when you create CMYK gradients, PS tries to make sure that the gradient is printable from beginning to end; that every single spot of the gradient is a CMYK value that can be printed. It does this by reducing the amount of ink that needs to be used. In your case it goes from the CMYK value (4, 98, 88, 1) which is the CMYK version of your RGB colour, to (0,0,0,0), no ink at all. Probably it tries to make sure, as well, that the ink density decreases the same way for all inks. Not sure about this though.
The same gradient created in RGB mode has way more flexibility. PS can create a smoother gradation because it has more colours to choose. The result is that PS, in trying to make a nice gradient as smooth as possible, takes a completely different path while gradating from #de1f26 to #ffffff because it does not have to avoid unprintable colours.
Take a look at this image, for example:
The file at the top is RGB. The one at the bottom is CMYK. I started with the same colour in both cases and decreased the opacity of the circle in 25% increments. Notice how the colours that result are completely different in both cases.
Take a look at this now. This is the colour composition of both images, side by side. The first one is the RGB image and the second one the CMYK image.
Notice how, in the RGB image, the colour starts with no so much red but lots of green and blue. To create the gradient PS cannot play with the red too much, since there is not much to start with anyways, so the only thing it can do is to reduce the blue and green progressively, traversing through cooler colours (little red, lots of blue and green).
The CMYK image, though, starts with lots of Magenta and Yellow, but little Cyan. To create the gradient PS cannot play with the Cyan much, so it reduces the Magenta and Yellow, traversing through oranges (little cyan, lots of Magenta and Yellow).
Mind you, to make things way more confusing, the CMYK colour you see in PS is not a true CMYK colour, but an RGB representation of the CMYK colour. PS tries to make the best it can to represent how the colour would look if printed. The RGB colours, though, are true because the computer itself uses RGB.