if you have; stunted growth, smaller leaves, leaves turning bluish/green(yellow eventually),blotches in advanced cases, and leaf steams(petioles) turning purple starting on the underside is a lack of Phosphorus. From medical marijuana growers bible. Progression of P deficiency at a glance: stunted and very slow-growth plants, dark bluish-green(yellow) leaves, often with dark blotches,smaller plants overall, when blotches overcome the leaf stem, the leaf turns bronzish-purple, contorts, and drops. If all you leaves are yellow could just be lack of nitrogen, plants eat that up in veg and still need some in flowering. Though note, some strains naturally have purple petioles.