How to Use Color Math
FDA Colorant Calculator — Mix, Match & Batch
Color Math is a calculator built for soap and cosmetic makers who work with pigments, dyes, and mineral colorants. It helps you manually blend FDA-approved colorants, automatically match a target color using available pigments, or batch-match multiple colors at once. Every blend shows FDA compliance indicators so you know exactly where your colorants are safe to use. It has three tabs, each designed for a different workflow.
The Three Tabs
1. Color Mix
2. Color Match
3. Bulk Match
How to Use: Color Mix
Use this when you already know which colorants you want and need to visualize the blend.
Add Colorants
Select a colorant from the FDA-approved dropdown and tap "Add." Each colorant shows compliance badges (👁️ eye, 💄 lips, 🧴 external) in the dropdown.Set Ratios
Set each colorant's percentage. The total should add up to 100% for accurate color prediction — the percentage tracker turns green when it does.Preview Results
Watch the result color swatch and hex code update live as you change percentages.Check Compliance
Review the FDA Compliance Summary that appears below — it checks your entire blend for eye, lip, general, and external use approval.Print Formula
Tap "Generate Results" to open a printable formula sheet with your blend, result color, FDA compliance, and space for notes.Example Blend
How to Use: Color Match
Use this when you have a target color and want the calculator to figure out the best blend for you.
Set Target
Enter your target color using either a hex code (e.g., #FF5733) or RGB values (0-255 for each channel). A color swatch previews your target.Inventory Available
Add the colorants you have on hand from the dropdown. The calculator only uses colorants you select — the more you add, the better the match accuracy.Optimize Match
Tap "Calculate Best Match." The algorithm tests thousands of blend combinations and refines the best one to maximize accuracy.Review Formula
Review the "Best Match Formula" — each colorant shows its exact percentage to 0.01% precision, plus the overall match accuracy score (95%+ is excellent).Improve Accuracy
If accuracy is below 95%, the "How to Improve This Match" panel appears with specific colorants to add to your available list, each scored by how much it would close the gap.Check Substitutions
Check the notice panels — "Substitute Colorants in Use" shows any swaps made when ideal pigments are missing, and "Missing Colorants (No Substitute)" flags pigments with no available alternative.Example Match
How to Use: Bulk Match
Use this when you need to match multiple target colors at once using the same set of colorants.
List Targets
Enter up to 20 hex codes in the text area, one per line (e.g., #FF0000, #00FF00, #FFD700).Set Palette
Select your available colorants from the dropdown — these are the pigments the calculator can use for every match.Batch Process
Tap "Calculate All Matches." The calculator processes each target color and finds the best blend for each one.View Comparison
Review the results table — each row shows the target color, matched color, accuracy percentage, and the exact percentage of each colorant used.Export Table
Tap "Print Results" to print the comparison table for reference.Example Workflow
FDA Compliance Indicators
Every colorant and blend in Color Math shows three FDA approval indicators:
- 👁️ Eye Area: Whether the colorant or blend is FDA-approved for use around the eyes (eye shadow, eyeliner, mascara). Some colorants have conditional approval ("Limited") with specific product restrictions.
- 💄 Lips/General Use: Whether it's approved for lipstick, lip balm, and general cosmetic application. Some colorants have concentration limits (e.g., D&C Orange No. 5 is limited to 5% in lipsticks).
- 🧴 External Use: Whether it's approved for externally applied cosmetics like soap, lotion, and body products.
How blend compliance works
How the Color Match Engine Works
Color Match uses a multi-stage optimizer designed around professional color science:
- Gamma-correct mixing: Colors are mixed in linear light (not gamma-encoded sRGB), which is how pigments physically combine. This avoids the "muddying" that happens when you mix colors in screen space.
- ΔE2000 accuracy scoring: Match quality is measured using CIEDE2000 — the gold-standard perceptual color distance formula used in paint, print, and textile industries. A ΔE2000 of 0 is a perfect match; under 2 is imperceptible to most eyes; under 5 is a close match.
- Pigment-aware random search: The initial search generates blends using constraints derived from the target's color profile — so a light peach starts with a high TiO₂ budget, not random noise.
- Gradient descent refinement: After the search, the best blend is refined by nudging each colorant's percentage in steps down to 0.01%, keeping every change that improves the Delta-E score.
- Full-palette expansion pass: Every colorant you added — including ones not in the initial winning blend — gets seeded into the final result and optimized together. Colorants that don't help are then pruned automatically.
Common Use Cases
- Matching a color for soap: Use Color Match — enter your desired hex code, add your available mineral colorants (iron oxides, ultramarines, titanium dioxide), and get exact percentages for your test batch.
- Experimenting with blends: Use Color Mix — pick colorants you're curious about, adjust ratios freely, and see the resulting color update in real time.
- Planning a product line: Use Bulk Match — paste all your target shade hex codes, select the colorants you want to use across the line, and get every formula at once for side-by-side comparison.
- Checking compliance for lip products: Use Color Mix to build your blend, then check the FDA compliance summary — it flags any colorant that's not approved for lip use and shows concentration limits.
Tips for Working with Colorants
- Always do a small test batch — screen colors differ from how pigments look in your actual base medium.
- Iron oxides and ultramarines are stable in cold process soap; many FD&C dyes will morph or fade in high pH.
- Start with less colorant than you think you need — you can always add more, but you cannot remove it.
- Mix pigments into a small amount of oil before adding to your batch to avoid clumping and speckling.
- In Color Match, adding more available colorants gives the algorithm more options and typically improves accuracy.
- Check the "Missing Colorants" panel in Color Match — it tells you exactly which pigments to purchase to improve your results.
Frequently Asked Questions
Tip: Open ColorMath and try it now
ColorMath helps you calculate FDA-approved colorant amounts and track blended shades.
