"All" colour are described in a "colour space"If this is just an educational exercise, I would start with just reading about VGA. It has the five required signals, R, G, B, H, V, already separated.
by Jake Hertz
by Duane Benson
by Don Wilcher
by Duane Benson