title: How to convert a string color to its hex code or RGB value?
body: <p>I am not sure if its possible but I would like to create some sort of function where you pass in a string such as "yellow" or "green" and it returns its hex code or the range of hex codes that greens or yellows fit into.</p>
  
  <p>Is this possible in PHP? If not possible, I am willing to try anything else that can do this!</p>
  
  <p>Thanks all</p>