Skip to content

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
%

%

%

The mix

Key values as a table
IngredientAmount
Red100%
Green100%
Blue0%

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

  1. Choose light to mix coloured lamps or screen pixels, or paint to mix inks and pigments.
  2. Type how much of each you add, or drag the top of its bar in the picture.
  3. 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?

  1. Light adds up: red 255, green 255, blue 0, each out of 255.
  2. Written as hex, that is #ffff00.

#ffff00, a bright yellow: red and green light together look yellow.

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.

Send feedback