Color blindness, also known as color deficiency, occurs when someone has trouble distinguishing between certain colors, most commonly reds and greens. It is caused by mutations in genes responsible for the three types of cone cells in the retina that detect color. The most common types are red-green color blindness, which affects males more than females, and blue-yellow color blindness, which affects males and females equally. Color blindness can be inherited through X-linked recessive or autosomal dominant patterns or developed due to age, illness, chemicals, or eye trauma. It is detected using Ishihara color plate tests and in some cases treated with color filters.