Skip to content

Color Math

Embed

Paste this where you want Color Math on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/color-math/" width="100%" height="500" frameborder="0" loading="lazy" title="Color Math"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/color-math/">Color Math</a> by BrowserUtils</p>

Mix, blend, lighten, and darken colors with operations.Runs in this tab.

#95639d
rgb(149, 99, 157)

Next step

About Color Math

Free online color math tool. Mix two colors, lighten or darken colors by percentage, and find complementary colors using mathematical color operations. It runs in your browser. Nothing is sent to a server.

Questions

How does color mixing work?
Color mixing averages the RGB channels of two colors. You can adjust the mix ratio to weight one color more heavily. A 50/50 mix of #FF0000 and #0000FF produces #800080 (purple).
How is a complementary color calculated?
The complement of a color is found by subtracting each RGB channel from 255. For example, the complement of #3366CC is #CC9933.
How do I lighten or darken a color by a specific percentage?
Use the lighten/darken controls and set a percentage. Lightening blends the color toward white, and darkening blends it toward black. A 50% lighten on pure red (#FF0000) produces #FF8080.
What color format does the color math tool accept?
Enter colors as hex codes (e.g., #3366CC or 3366CC). The tool displays results in hex, RGB, and HSL so you can copy whichever format your project uses.
Does this color math tool work offline?
Yes. All color calculations happen in your browser. No data is sent to a server, and the tool works without an internet connection after the initial page load.

More in Math & Calculators

All 16 math & calculators