title: How do I make a lighter version of a colour using PHP?
body: <p>Hello fellow earthlings. A quesion about RGB color and its usefulness in a simple tiny php code:</p>
  
  <p>Imagine I have variable <code>$colorA</code> containning a valid six char color. say <code>B1B100</code>, a greenish natural color. Now If I would like to make a new color from that, which is, say, ten steps lighter thatn that original color, roughly.</p>
  
  <pre><code>$colorA = B1B100 // original color
  php code with little color engine lightening stuff up goes here
  $colorB = ?????? // original color lightened up
  </code></pre>
  
  <p>Is there a php ready function that KNOWS rgb colors something like</p>
  
  <p><em><strong>php function RGB ( input color, what to do, output color)</em></strong>
  Where what to do could be +/- 255 values of brightness etc etc.</p>
  
  <p>Is something like this already possible or am I day dreaming?</p>
  
  <pre><code>rgb-hsl($colorA, +10, $colorB);
  </code></pre>
  
  <p>If this does not exist, what would be the shortest code for doing this? Suggestions, code or ideas are all answers to me. Thanks.</p>