title: How do I determine if a color is closer to white or black?
body: <p>I am dealing with images and would like to determine if a set of pixels are closer to white or black. </p>
  
  <p>So given a set of <strong>colors/pixles</strong>, how does one determine if they closer to a white or a black?</p>
  
  <p>I have tried some noobish algorithms, does anyone know how I can do this?</p>