<p>First off, the CMYK model includes black as its own channel, so you typically don't mix a combo of cyan, magenta &amp; yellow to get black, you add black directly as its own independent element. There are a number of reasons for using black directly &amp; without knowing your context, it's difficult to advise you on how to get by without it. <a href="https://graphicdesign.stackexchange.com/questions/2984/what-kind-of-black-should-i-use-when-designing-for-cmyk-print">What kind of black should I use when designing for CMYK print?</a> on the graphic design SE has some in depth answers regarding use of black by itself &amp; as a mixture (sometimes called composite black).</p>

<p>Second, CMYK is a subtractive model for mixing inks based on the notion of reducing brightness. RGB is an additive model based on mixing lights. Because they use different models &amp; are both context dependent, there isn't a generalized conversion formula. The <a href="https://stackoverflow.com/questions/4858131/rgb-to-cmyk-and-back-algorithm">RGB to CMYK and back algorithm</a> question on SO has a number of in depth answers regarding possible conversion algorithms. Again, it's hard to know what to suggest when you haven't clarified what you're using the colors for.</p>

CC BY-SA 3.0
2017-06-05T16:32:23.167Z
2017-06-05T16:32:23.167Z
Pikalek
<p>I am trying to find a way to go from some proportion of cyan, magenta and yellow where: </p>

<p>cyan: 33 % + magenta : 33% + yellow : 33% = 100% black</p>

<p>so each is represented as a percentage of the sum total. mixing 50% magenta and 50 % yellow should result in red. Mixing some colour with its complement would in effect mix some proportion of all three primaries and result in some amount of black and pulling it further towards one of the primaries, so mixing red and blue would mix cmy in some proportion which would result in some amount of black and a balance of the other two primaries so it would just change chroma.</p>

<p>Any help is appreciated. I know that the gamuts of devices and colour models vary so it doesn't need to be perfect, it just needs to be intuitive for someone familiar with the cmy colour wheel to be able to use. </p>

<hr>

<p>The desired output is an rgb colour code or a cmyk that could then be converted to rgb. </p>

<p>There is no white so you're limited to the hues and shades that can be formed from the three primaries. I'm okay with that. </p>

<p>Hey guys, I'm still trying to find a solution to this. If anyone could help it would be great. </p>

<hr>

<p>This is for a game, the input is derived from some time value that represents a proportion of primary paints. Sort of.</p>

<p>I realize that in cmyk k stands for key and is a black dye that is purer than the black that can be obtained from mixing the primaries. In my game cmyk is unimportant, only that I can mix three primary colours cyan, magenta and yellow to mix the colour wheel.</p>

<p>It is unlikely that black will even be required, but the chroma effect of mixing some proportion of all three primaries together is required as I would want more than just the hues.  I appreciate that lightness of the hues is not possible without white but that is also fine.</p>

<p>I want it so that given some floating point value for representing some proportion of each primary, I can calculate that as percentages and then resolve that to an rgb colour code. It need not be a perfect conversion as only the rgb colour will be displayed, the cmy will just be for the calculation. A close approximation will suffice.</p>

<p>I don't need an especially wide gamut. I just need to be able to mix some proportion of the paints to mix a colour palette. If the player mixes equal parts of each primary then it would be black, if they keep mixing in magenta then it will become more and more magenta again as the volume of magenta dwarfs the volume of black. </p>

<p>If you mix red and blue you're mixing magenta and yellow with magenta and cyan. </p>

<p>I hope that clarifies some of the questions. The goal is to take the intuitive representation expressed to the player, three primary colours, and resolve that to a colour code that can be used to actually render to the screen.</p>

<p>The player will be able to clear the colour so they can then return to a pure primary colour. But to mix any particular colour they will do so by mixing the primary colours. Hue, chroma and brightness should be possible though lightness isn't possible without white as this is subtractive. </p>

CC BY-SA 3.0
2017-06-05T15:14:11.893Z
It can not work. Because that would mean tye primaries are not pure. Although mathematically you could have some fudge factor but no ink can actually work like this.
joojaa
CC BY-SA 3.0
2017-06-05T15:40:37.397Z
What do you mean it can't work? If you take magenta paint, cyan paint and yellow paint, you can mix the colour wheel. This is exactly what I'm talking about, you take some proportion of primary colours and mix them together.

one part yellow to 1 part magenta and you get red and so on
eternalNoob
CC BY-SA 3.0
2017-06-05T17:18:09.107Z
It wont work because to make red you need 100% cyan + 100% yellow. Otherwise you get a red otherwise your formula no longer adds up on any other concentrations. As that would mean you would need a darker mixture for red than from black. So best not think percentages but parts of color mixture.
joojaa
CC BY-SA 3.0
2017-06-05T17:22:46.870Z
That would be true if it was represented in cmyk, but I'm not in the colour model cmyk, I need to take some ratio of primary paints and return some rgb colour code. 

The cmyk colour model as an intermediary seems unwise given that it is 0-100% for each component c m y and k and goes from white to pure , and i have no white.

What I want is a colour wheel that covers hues and chroma. If you want red you mix an equal proportion of magenta and yellow to get secondary colour red. if you mix blue and red you're mixing all 3 cmy in some proportion, that's the definition of a primary.
eternalNoob
CC BY-SA 3.0
2017-07-07T01:24:35.750Z
From your additional description, it sounds like you just want `r = 1-c`, `g = 1-m` and `b = 1-y`, then work in RGB.
user1118321
CC BY-SA 3.0
2017-06-03T10:44:03.387Z
What output are you looking for? You say you're going *from* some proportions of subtractive primaries, but what colour space are you trying to convert it *to*? And if the proportions have to add to 100%, how do you express the lightness of the colour?
Dan Hulme
<color>
correct rgb or cmyk code from some proportion of cyan, magenta and yellow
eternalNoob
# correct rgb or cmyk code from some proportion of cyan, magenta and yellow

(Asked by: username_0 on 2017-06-03)

I am trying to find a way to go from some proportion of cyan, magenta and yellow where:

cyan: 33 % + magenta : 33% + yellow : 33% = 100% black

so each is represented as a percentage of the sum total. mixing 50% magenta and 50 % yellow should result in red. Mixing some colour with its complement would in effect mix some proportion of all three primaries and result in some amount of black and pulling it further towards one of the primaries, so mixing red and blue would mix cmy in some proportion which would result in some amount of black and a balance of the other two primaries so it would just change chroma.

Any help is appreciated. I know that the gamuts of devices and colour models vary so it doesn't need to be perfect, it just needs to be intuitive for someone familiar with the cmy colour wheel to be able to use.

---

The desired output is an rgb colour code or a cmyk that could then be converted to rgb.

There is no white so you're limited to the hues and shades that can be formed from the three primaries. I'm okay with that.

Hey guys, I'm still trying to find a solution to this. If anyone could help it would be great.

---

This is for a game, the input is derived from some time value that represents a proportion of primary paints. Sort of.

I realize that in cmyk k stands for key and is a black dye that is purer than the black that can be obtained from mixing the primaries. In my game cmyk is unimportant, only that I can mix three primary colours cyan, magenta and yellow to mix the colour wheel.

It is unlikely that black will even be required, but the chroma effect of mixing some proportion of all three primaries together is required as I would want more than just the hues. I appreciate that lightness of the hues is not possible without white but that is also fine.

I want it so that given some floating point value for representing some proportion of each primary, I can calculate that as percentages and then resolve that to an rgb colour code. It need not be a perfect conversion as only the rgb colour will be displayed, the cmy will just be for the calculation. A close approximation will suffice.

I don't need an especially wide gamut. I just need to be able to mix some proportion of the paints to mix a colour palette. If the player mixes equal parts of each primary then it would be black, if they keep mixing in magenta then it will become more and more magenta again as the volume of magenta dwarfs the volume of black.

If you mix red and blue you're mixing magenta and yellow with magenta and cyan.

I hope that clarifies some of the questions. The goal is to take the intuitive representation expressed to the player, three primary colours, and resolve that to a colour code that can be used to actually render to the screen.

The player will be able to clear the colour so they can then return to a pure primary colour. But to mix any particular colour they will do so by mixing the primary colours. Hue, chroma and brightness should be possible though lightness isn't possible without white as this is subtractive.

**Tags:** color

> **Comments:**
> **username_3**: What output are you looking for? You say you're going *from* some proportions of subtractive primaries, but what colour space are you trying to convert it *to*? And if the proportions have to add to 100%, how do you express the lightness of the colour?  
> **username_1**: It can not work. Because that would mean tye primaries are not pure. Although mathematically you could have some fudge factor but no ink can actually work like this.  
> **username_0**: What do you mean it can't work? If you take magenta paint, cyan paint and yellow paint, you can mix the colour wheel. This is exactly what I'm talking about, you take some proportion of primary colours and mix them together.  one part yellow to 1 part magenta and you get red and so on  
> **username_1**: It wont work because to make red you need 100% cyan + 100% yellow. Otherwise you get a red otherwise your formula no longer adds up on any other concentrations. As that would mean you would need a darker mixture for red than from black. So best not think percentages but parts of color mixture.  
> **username_0**: That would be true if it was represented in cmyk, but I'm not in the colour model cmyk, I need to take some ratio of primary paints and return some rgb colour code.   The cmyk colour model as an intermediary seems unwise given that it is 0-100% for each component c m y and k and goes from white to pure , and i have no white.  What I want is a colour wheel that covers hues and chroma. If you want red you mix an equal proportion of magenta and yellow to get secondary colour red. if you mix blue and red you're mixing all 3 cmy in some proportion, that's the definition of a primary.  
> **username_2**: From your additional description, it sounds like you just want `r = 1-c`, `g = 1-m` and `b = 1-y`, then work in RGB.  

---

## 1 answers

### Answer by username_4 on 2017-06-05. Score: 3

First off, the CMYK model includes black as its own channel, so you typically don't mix a combo of cyan, magenta & yellow to get black, you add black directly as its own independent element. There are a number of reasons for using black directly & without knowing your context, it's difficult to advise you on how to get by without it. [What kind of black should I use when designing for CMYK print?](https://graphicdesign.stackexchange.com/questions/2984/what-kind-of-black-should-i-use-when-designing-for-cmyk-print) on the graphic design SE has some in depth answers regarding use of black by itself & as a mixture (sometimes called composite black).

Second, CMYK is a subtractive model for mixing inks based on the notion of reducing brightness. RGB is an additive model based on mixing lights. Because they use different models & are both context dependent, there isn't a generalized conversion formula. The [RGB to CMYK and back algorithm](https://stackoverflow.com/questions/4858131/rgb-to-cmyk-and-back-algorithm) question on SO has a number of in depth answers regarding possible conversion algorithms. Again, it's hard to know what to suggest when you haven't clarified what you're using the colors for.


---

