How to detect green from RGB? : <p>I would like to detect green from a RGB. I would like to know if it's green from all variations. </p>

<p>I have a RGB, and I would like to know if it's green. It includes lighter green and so on. </p>

<p>Is there a way?</p>
