title: How can I give a color name against a hex color code?
body: <p>I have a code that can only give hex code on touch pixel on image. 
  Now I want to give the name of the color as well. 
  How is this possible using Android?? Please suggest a way.</p>
  
  <pre><code>public boolean onTouch(View v, MotionEvent event) {
                  // get x coordinates
                  int x = (int) event.getX();
                  // get y coordinates
                  int y = (int) event.getY();
                  // get bitmap in touch listener
                  final Bitmap bitmap = ((BitmapDrawable) image.getDrawable()).getBitmap();
                  //xand y coordinates stored in to pixel
                  int pixel = bitmap.getPixel(x, y);
                  //RGB values
                  redValue = Color.red(pixel);
                  blueValue = Color.blue(pixel);
                  greenValue = Color.green(pixel); 
  
                  selected_colour.setText(""+redValue+""+blueValue+""+greenValue);
                  selected_colour.setText("touched color:" + "#" + Integer.toHexString(redValue) + Integer.toHexString(greenValue) + Integer.toHexString(blueValue));
  
                  selected_colour.setTextColor(pixel);
  
                  return false;
              }
          });
  </code></pre>