Home › How recipes are calculated

How PaintMixLab calculates a paint mixing recipe

Every recipe in the app and on this site comes from the same pipeline: sample a color, model how the tubes in your set mix, search for the combination that lands closest, round it to parts you can measure, and score the result honestly. This page explains each step, what the accuracy numbers mean, and where the limits are.

1. The target color

In the app you tap a point in a photo. The sample is the median of a 15 × 15 pixel patch, so a stray highlight, a brush ridge or JPEG noise cannot pull it off. Before sampling, tapping a sheet of white paper in the same photo sets the white balance, which matters more than anything else that follows: without it the app measures the lighting, not the paint. On this site the targets are named colors with a fixed sRGB value (shown on each recipe page), so the pages are reproducible.

2. Paint data: what the engine knows about each tube

A tube is described by its masstone (the color straight from the tube), its absorption and its scattering across 38 wavelength bands. Scattering is what makes one blue tint a pale sky and another a nearly unchanged navy at the same ratio: it is tinting strength, and no manufacturer publishes it. Every set in the app therefore carries a data tier:

  • Calibrated (Gamblin Artist Grade, Gamblin 1980). Masstone and scattering were fitted from the maker’s own photographed color panels, tube by tube, using the standard masstone-plus-tint method. The fit reproduces Gamblin’s published tints with a median error of about 1 ΔE and, as an independent check, separates their opaque, semi-transparent and transparent classes by roughly 11× without ever being told them.
  • Measured (Magicfly 40). Fitted against painted swatch cards — single tubes, pairs and ladders — photographed in daylight next to white paper. Fewer samples than a calibrated set, so a little more uncertainty.
  • Estimated (Winton, Castle, Mont Marte, Arteza, Ohuhu, Bob Ross, U.S. Art Supply). Masstone from the nearest pigment-matched measured color, and tinting strength from an opacity-class prior (opaque, semi-opaque, semi-transparent, transparent). These are good starting points, not measurements, and the match quality on their pages says so.

In the app you can move any tube up a tier yourself: paint three patches (white, the pure color, and 1 part color to 2 parts white), photograph them, tap each one. Those two color patches are exactly the measurements that determine a tube’s absorption and scattering, and the fit is applied immediately.

3. The mixing model

Paint does not mix like light or like ink. Pigments both absorb and scatter, and the color of a mixture depends on the ratio of the two across the spectrum. The engine uses Kubelka–Munk theory: for each wavelength band the absorption and scattering of the mix are the volume-weighted sums of each tube’s, and the reflectance follows from their ratio. Calibrated sets use the two-constant form (absorption and scattering summed independently); estimated sets use the single-constant form with the strength prior. The predicted reflectance curve is converted to a color under daylight (D65) for display and scoring.

One correction came from the palette rather than the textbook. Across many painted tests, real mixes came out darker than the model predicted, and adding an equal volume of Titanium White to the finished pile brought them to the predicted color. The standard engine therefore writes that white into every recipe (a 3 : 1 mix becomes White 4 : 3 : 1), while the swatch and score shown are for the pile you will actually see. The original ratio is still available as the “raw” recipe for anyone who prefers to add white by eye.

  • Every single tube, every pair, and every triple in the set is mixed at a grid of ratios and scored against the target. Above 40 tubes the triple search is pruned to tubes that did well as singles and pairs (plus a white and a black), which brings the 93-color Gamblin range from 11 seconds to under 2 with identical results on the boxed sets.
  • Score = color difference (ΔE00, the CIEDE2000 formula) with small penalties for extra tubes and, when you ask for it, for using black. Fewer tubes usually means a cleaner, more repeatable mix, so a two-tube recipe at ΔE 1.2 beats a three-tube recipe at ΔE 1.0.
  • Ratios are then reduced to whole or half parts — 13 : 1, 4 : 2 : 1 — because a palette knife cannot measure 37%. The score shown is for the rounded recipe, not the ideal one.
  • You get the best recipe plus alternatives: a two-tube version, a version that avoids black, and the same color in other sets.

5. What the match score means

ΔE00 is the standard measure of how different two colors look. On this site and in the app it is reported in four bands: under 1.5, excellent — invisible on the palette; under 3.5, very close — a touch of white or the dominant tube will land it; under 6, close — visibly off but the right neighbourhood; 6 and above, approximate — the set does not contain a pigment that reaches the color cleanly, and the recipe is the nearest it can get. We show the number rather than hiding it, because an approximate recipe is still useful if you know it is one.

6. Check my mix: the loop that keeps the model honest

A prediction is only a starting point. In the app, photographing the mixed pile next to white paper measures what you actually made, scores it against the target, and says in plain words what is wrong (lighter, duller, leaning green). It then fits the engine to that photo — adjusting each tube’s strength so the model reproduces your pile — and searches for the smallest addition, up to two tubes in measurable parts, that brings it closer. Each round tightens the fit. Below about ΔE 2.5 the app stops suggesting, because that is as close as a phone photo can tell.

7. Known limits

  • Phone photos carry ±2–4 ΔE of noise even with a white reference. Daylight and a sheet of white paper are the difference between a useful check and a misleading one.
  • Catalog colors for estimated sets can be 3–8 ΔE from the real masstone. That is why those sets are labeled estimated and why in-app calibration exists.
  • Acrylics dry darker and slightly duller than they look wet. The engine is calibrated on oil; for acrylic, mix a half step lighter and treat the recipe as a starting point.
  • Drying, glazing and thick impasto change appearance in ways a flat-mix model does not capture. The recipes describe the pile on the palette.
  • Accuracy ceiling. With photographed calibration the model can get a typical mix to about ΔE 2.5–3 of the real paint; getting to 1–2 would need a spectrophotometer, which is not happening in a phone. Published ΔE 1 figures elsewhere assume lab measurement of every tube.

8. How the swatches on this site are made

The color pairs on recipe pages (target versus predicted mix) are the engine’s output for that set. Illustrative swatch strips in guides are predicted from Winton pigment data and labeled “predicted from pigment data”; they show relationships between mixes, not the exact color of any brand’s tube. Where a guide shows a painting, it is a credited public-domain or Creative Commons work, chosen because the painter solved that problem on the canvas.

Questions

What is Kubelka–Munk?

A model of how layers of pigment absorb and scatter light. Mixing paints adds their absorption and scattering; the color of the mix follows from the ratio of the two at each wavelength. It is the standard model used in the coatings industry and the one PaintMixLab uses.

Why do recipes differ between brands for the same color?

Tinting strength. The same pigment can be loaded very differently from tube to tube, so one brand’s Phthalo Blue needs a quarter of the amount another does. The engine carries separate data for each set rather than one generic palette.

What does ΔE mean?

The perceived difference between two colors, on a scale where 1 is roughly the smallest difference a trained eye can see side by side. PaintMixLab uses ΔE00 (CIEDE2000). Under 1.5 is an excellent match, under 3.5 very close, under 6 close.

Are the recipes measured or predicted?

Predicted by a model that was fitted to measured paint. Calibrated sets are fitted tube by tube to photographed color panels; estimated sets use pigment data and a strength prior. The camera check in the app measures your actual mix and corrects from there.

Why does every recipe have so much white?

Two reasons. Most colors in nature are much lighter than any tube, so white carries most of the volume. And painted tests showed real mixes coming out darker than predicted, so the standard engine adds an equal volume of white to the chromatic pile.

Let the app do the arithmetic
PaintMixLab photographs the color and writes the recipe in parts for the paint set you own. Free for 3 days on iPhone.