What you enter stays on your device while you use this tool. Opening a shared link sends the settings in its address to HowToolbox to prepare the page.
The mix
Key values as a table
| Ingredient | Amount |
|---|---|
| Red | 100% |
| Green | 100% |
| Blue | 0% |
Mixed colour
#ffff00
Red light at 100%, green at 100% and blue at 0% together look yellow.
Colour codes
- Looks
- yellow
- RGB
- rgb(255 255 0)
- HSL
- hsl(60 100% 50%)
- CSS colour name
- yellow
Each ingredient on its own
- Red 100%
- #ff0000
- Green 100%
- #00ff00
- Blue 0%
- #000000
Mix red, green and blue light, or cyan, magenta and yellow paint, and see the colour you get with its hex and RGB values.
How to use
- Choose light to mix coloured lamps or screen pixels, or paint to mix inks and pigments.
- Type how much of each you add, or drag the top of its bar in the picture.
- See the mixed colour in the swatch with its hex, RGB and HSL values and the nearest colour name.
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".
Worked example
What colour do full red and full green light make?
- Light adds up: red 255, green 255, blue 0, each out of 255.
- Written as hex, that is #ffff00.
#ffff00, a bright yellow: red and green light together look yellow.
Sources
- OpenStax College Physics 2e, §26.3 Color and Color VisionUsed for: rules
- W3C: CSS Color Module Level 4Used for: reference data
Frequently asked questions
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.
Next you might need
More in Physics
- Artificial gravity calculator, private, runs on your device
- Black hole time dilation, private, runs on your device
- Buoyancy calculator, private, runs on your device
- Circular motion calculator, private, runs on your device
- Cooling calculator, private, runs on your device
- Coulomb's law calculator, private, runs on your device





