Colors are a result of the way our eyes and brains perceive light. When light hits an object, the object absorbs some of the light and reflects the rest. The reflected light enters our eyes, where it is detected by cells called cones. These cones then send signals to the brain, which interprets the signals as different colors.
There are two primary ways in which colors are created: additive and subtractive color mixing.
Additive color mixing occurs when different colors of light are combined. The primary colors of light are red, green, and blue (RGB). When these colors are combined in different amounts, they can create a wide range of other colors. For example, combining red and green light creates yellow, while combining red, green, and blue light creates white light.
Subtractive color mixing occurs when different colors of pigments are combined. The primary subtractive colors are cyan, magenta, and yellow (CMY). When these pigments are combined in varying amounts, they can produce a wide range of colors. For example, combining cyan and yellow pigments creates green, while combining cyan, magenta, and yellow produces black.