Detect color of pixel