# Colour mixing: light and paint > How do colours mix? Mix red, green and blue light, or cyan, magenta and yellow paint, and see the colour you get with its hex and RGB values. Mix red, green and blue light or cyan, magenta and yellow pigment with sliders. See the mixed colour, its hex and RGB values and the nearest colour name. - Page: https://how.box/color-mixing/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/color-mixing/?m={m}&r={r}&g={g}&b={b}&c={c}&mg={mg}&y={y} - `m` (light or pigment): light or pigment. Example: `pigment`. - `r` (number 0 to 100): Red light (m=light), percent. Example: `100`. - `g` (number 0 to 100): Green light (m=light), percent. Example: `100`. - `b` (number 0 to 100): Blue light (m=light), percent. Example: `0`. - `c` (number 0 to 100): Cyan (m=pigment), percent. Example: `100`. - `mg` (number 0 to 100): Magenta (m=pigment), percent. Example: `0`. - `y` (number 0 to 100): Yellow (m=pigment), percent. Example: `100`. Example answer: https://how.box/color-mixing/?m=pigment&r=100&g=100&b=0&c=100&mg=0&y=100 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `color_mixing_mix`: Mixes colours. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"color_mixing_mix","arguments":{"mode":"pigment","red":100,"green":100,"blue":0,"cyan":100,"magenta":0,"yellow":100}}}` - GET: https://how.box/mcp/run/color_mixing_mix?mode=pigment&red=100&green=100&blue=0&cyan=100&magenta=0&yellow=100 ## How it works Light and paint mix in opposite ways. Coloured lights add up: red and green light together look yellow, and red, green and blue at full strength look white. This additive mixing is how every screen makes its colours, from tiny red, green and blue dots. In numbers, each channel simply adds: red 100 % and green 100 % with no blue is RGB (255, 255, 0), #ffff00. Paints and inks take light away. A pigment looks cyan because it absorbs red light and reflects green and blue; magenta absorbs green, and yellow absorbs blue. Mixing pigments stacks their absorptions, so cyan and yellow leave only green, and all three together leave almost nothing: black. In the ideal model used here, R = 1 − cyan, G = 1 − magenta and B = 1 − yellow. Printers use this with cyan, magenta and yellow ink, plus black. Real paints are not ideal filters, so a real mix is usually darker and duller than shown, and a screen shows the colour within its sRGB range. Source: OpenStax College Physics 2e, section 26.3, "Color and Color Vision". ## FAQ **Can I use the paint mode to match a real paint colour?** Use it to explore colour relationships, not to choose a paint recipe. It has no pigment brand, opacity or mixing-ratio data, so test a physical sample for a real match. **What are the primary colours?** For light, red, green and blue. For paint and print, cyan, magenta and yellow. The red, yellow and blue taught in art class are an older, approximate set of paint primaries. **Why do printers use black ink as well?** Real cyan, magenta and yellow inks mixed together give a muddy dark brown, not a deep black, and use a lot of ink. A separate black ink is cheaper and sharper for text. **Why does the colour name sometimes differ from the colour I see?** The name is the nearest named CSS colour, and many shades have no exact name in that set. Use the hex or RGB values when you need to reproduce the swatch precisely. **Do the three percentages have to add up to 100?** No. Each slider is independent and can reach 100%. They represent channel strength or ideal absorption, not spoonfuls of paint in a recipe. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)