Colorblindness is carried on the X chromosome and is recessive. There are two allele frequencies, p (let's say for functioning pigment) and q (for colorblindness). Males have only one X chromosome, so they carry those allele frequencies at those same rates, p and q. This means that the frequency of colorblindness in males is q, while the frequency of normal sightedness is p.
For females, things work as they normally do in Hardy-Weinberg. With two X chromosomes, there are two alleles to consider, so there are four possible combinations: pp, pq, qp, and qq. This is why they say the genotype frequencies are p^2, 2pq, and q^2. Because colorblindness is recessive, a female needs two q alleles to be colorblind, which occurs at the rate of q^2. Remember that for males, any appearance of q is sufficient since there is no other X chromosome to compensate.
Please let me know if you need clarification, or if this wasn't what you were asking.