<p>RGB (Red Green Blue), is the common system for representing primary colors for emitted light.  That's the color system used for computer monitors.  The hex codes are a way of specifying the RGB values.  Each two-digit pair in the sequence represents a value between 0 and 255 (in hexadecimal, so only two characters are needed for each value), for red, green and blue light.  That allows over 16 million possible colors, which is adequately close to what the human eye can distinguish.</p>
<p>CMY (Cyan Magenta Yellow), is a common system for representing primary colors of reflected light.  It's typically the color system used for print colors.  Additional colors are often added to the pallet because it is difficult to produce intense RGB primary colors by mixing CMY colors.  So printers typically add black, and high-end photo printers often add one or more of the RGB primary colors.</p>
<p>To create precise mixed colors, you need to start with precise primary colors.  For example, a nice, intense blue may not be an optically &quot;pure&quot; blue primary color, so any colors mixed from that will be off.</p>
<p>With paint, there is also the effect of how concentrated the pigment is in the paint.  If you mix a color from two paints that are optically perfect primary colors but have different concentrations of pigment, the resulting color will be off in the direction of the paint containing a higher ratio of pigment.  You create the color by mixing controlled amounts of pigment, not controlled amounts of paint.</p>
<p>Companies that sell mixed paint colors use precisely known colorants, in terms of both the color and the concentration of pigment.  Their equipment is calibrated based on those standard source colorants.</p>
<p>You're starting with paint whose precise color and pigment concentration are unknown, so there is no basis for mixing colors from those without calibration equipment (other than by eye).  You have the further problem that you aren't starting with a pallet that is primary colors for reflected light, so there will be ranges of color you can't reproduce from just those.</p>
<p>You can approximate a CMY pallet by mixing the colors you have, and that might get you close enough for the colors you need, but there are two big problems.  One is that you can never mix pure magenta or cyan primary colors from other colors.  The best you can do is to create very desaturated versions.  The other problem is that you have no way to produce accurate primary hues as a mixing starting point without calibration equipment.</p>
<p>So unfortunately, you can't get there from here.  You may be able to come adequately close for your needs if you buy a color calibration sensor and a good white light source with a high color rendering index.  There are some relatively inexpensive ones for calibrating monitors.  You may even be able to create something crude with a cellphone camera, a standard color target, and some calibration software.</p>
<p>Once you have a calibrated color sensor, you could precisely mix some colors and measure how far off they are from theoretical.  That will indicate differences in pigment concentration, and you could adjust for that.</p>
<p>The reality, though, is that you will invest more time, effort, and money in trying to use your existing paints in this way than buying paints (or paint-like printer's inks) designed to be used in the way you want to use them.</p>

CC BY-SA 4.0
2021-03-11T08:04:25.017Z
Even with a (monitor) colour calibration sensor, you'll struggle with measuring paint colours precisely. Illumination will be critical, and of course it will have to be dry for the final colour and especially the reflection to show properly
Chris H
CC BY-SA 4.0
2021-03-11T11:19:46.057Z
Thanks for the elaboration, I've never though about these things (especially about the primary colors).
cyau
CC BY-SA 4.0
2021-03-10T22:02:58.293Z
2022-04-16T19:30:09.000Z
2022-04-16T19:30:09.000Z
fixer1234
<p>I want to replicate a color scheme that is given in Hex codes (RGB, equivalently) - example <a href="https://color.romanuke.com/czvetovaya-palitra-4291/" rel="noreferrer">here</a>.</p>
<p>Given that I have red, yellow, blue, white and black paint, how am I supposed to systematically reproduce these colors? How can I determine the exact proportions of red, yellow, blue, white and black paint I should mix in order to get the colors shown? (Or any Hex-coded color for that matter.)</p>
<p>In any case I want to avoid mixing things &quot;by eye&quot;.</p>

CC BY-SA 4.0
2021-03-06T19:27:47.193Z
That will be very hard: different paints have different amounts of pigment, which might have different characteristics, meaning no mix will have equal proportions. You *will* always have to do some mixing by eye.
Joachim
CC BY-SA 4.0
2021-03-06T19:34:26.503Z
(+2cents) You are looking at two different color models: one is additive and the other subtractive. I would be surprised if there was a way to do this other than "by eye".
agarza
CC BY-SA 4.0
2021-03-06T20:12:11.807Z
Agarza, I am wondering that as well, but companies that make paint in gallon buckets have a machine that calibrates the exact color the person requests. But that would go into electronics, and machinery. Not arts and crafts.
Lyssagal
CC BY-SA 4.0
2021-03-07T09:06:31.647Z
@Lyssagal those companies also know exactly what's in the paint, or rather the calibration files for their machines do. Even then I suspect they rely on starting with a suitable but lighter base, and adding pigment or concentrated paint, rather than mixing pre-made paint. The OP may do better converting from RGB and working in CMYK colour space, buying paints accordingly, but any mixing involving black is problematic (carbon black helps). Lots of white will be needed, and saturated colours. It feels more like an educational project than a technique
Chris H
CC BY-SA 4.0
2022-06-15T20:11:50.217Z
You can find various online hex-to-pantone tools, and there are also companies that claim to provide paint matching pantone colors. I've no idea how accurate these things are but pantone is designed as a color standard for printing.
Stuart F
<color>
How to mix paint given a hex color code?
cyau
# How to mix paint given a hex color code?

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

I want to replicate a color scheme that is given in Hex codes (RGB, equivalently) - example [here](https://color.romanuke.com/czvetovaya-palitra-4291/).

Given that I have red, yellow, blue, white and black paint, how am I supposed to systematically reproduce these colors? How can I determine the exact proportions of red, yellow, blue, white and black paint I should mix in order to get the colors shown? (Or any Hex-coded color for that matter.)

In any case I want to avoid mixing things "by eye".

**Tags:** color

> **Comments:**
> **username_1**: That will be very hard: different paints have different amounts of pigment, which might have different characteristics, meaning no mix will have equal proportions. You *will* always have to do some mixing by eye.  
> **username_2**: (+2cents) You are looking at two different color models: one is additive and the other subtractive. I would be surprised if there was a way to do this other than "by eye".  
> **username_3**: username_2, I am wondering that as well, but companies that make paint in gallon buckets have a machine that calibrates the exact color the person requests. But that would go into electronics, and machinery. Not arts and crafts.  
> **username_4**: @username_3 those companies also know exactly what's in the paint, or rather the calibration files for their machines do. Even then I suspect they rely on starting with a suitable but lighter base, and adding pigment or concentrated paint, rather than mixing pre-made paint. The OP may do better converting from RGB and working in CMYK colour space, buying paints accordingly, but any mixing involving black is problematic (carbon black helps). Lots of white will be needed, and saturated colours. It feels more like an educational project than a technique  
> **username_5**: You can find various online hex-to-pantone tools, and there are also companies that claim to provide paint matching pantone colors. I've no idea how accurate these things are but pantone is designed as a color standard for printing.  

---

## 1 answers

### Answer by username_6 on 2021-03-10. Score: 9 | Accepted answer

RGB (Red Green Blue), is the common system for representing primary colors for emitted light. That's the color system used for computer monitors. The hex codes are a way of specifying the RGB values. Each two-digit pair in the sequence represents a value between 0 and 255 (in hexadecimal, so only two characters are needed for each value), for red, green and blue light. That allows over 16 million possible colors, which is adequately close to what the human eye can distinguish.

CMY (Cyan Magenta Yellow), is a common system for representing primary colors of reflected light. It's typically the color system used for print colors. Additional colors are often added to the pallet because it is difficult to produce intense RGB primary colors by mixing CMY colors. So printers typically add black, and high-end photo printers often add one or more of the RGB primary colors.

To create precise mixed colors, you need to start with precise primary colors. For example, a nice, intense blue may not be an optically "pure" blue primary color, so any colors mixed from that will be off.

With paint, there is also the effect of how concentrated the pigment is in the paint. If you mix a color from two paints that are optically perfect primary colors but have different concentrations of pigment, the resulting color will be off in the direction of the paint containing a higher ratio of pigment. You create the color by mixing controlled amounts of pigment, not controlled amounts of paint.

Companies that sell mixed paint colors use precisely known colorants, in terms of both the color and the concentration of pigment. Their equipment is calibrated based on those standard source colorants.

You're starting with paint whose precise color and pigment concentration are unknown, so there is no basis for mixing colors from those without calibration equipment (other than by eye). You have the further problem that you aren't starting with a pallet that is primary colors for reflected light, so there will be ranges of color you can't reproduce from just those.

You can approximate a CMY pallet by mixing the colors you have, and that might get you close enough for the colors you need, but there are two big problems. One is that you can never mix pure magenta or cyan primary colors from other colors. The best you can do is to create very desaturated versions. The other problem is that you have no way to produce accurate primary hues as a mixing starting point without calibration equipment.

So unfortunately, you can't get there from here. You may be able to come adequately close for your needs if you buy a color calibration sensor and a good white light source with a high color rendering index. There are some relatively inexpensive ones for calibrating monitors. You may even be able to create something crude with a cellphone camera, a standard color target, and some calibration software.

Once you have a calibrated color sensor, you could precisely mix some colors and measure how far off they are from theoretical. That will indicate differences in pigment concentration, and you could adjust for that.

The reality, though, is that you will invest more time, effort, and money in trying to use your existing paints in this way than buying paints (or paint-like printer's inks) designed to be used in the way you want to use them.

> **Comments:**
> **username_4**: Even with a (monitor) colour calibration sensor, you'll struggle with measuring paint colours precisely. Illumination will be critical, and of course it will have to be dry for the final colour and especially the reflection to show properly  
> **username_0**: Thanks for the elaboration, I've never though about these things (especially about the primary colors).  

---

