How to Choose the Right LED Color for Machine Vision
Two features that look clearly different to a human eye can produce the exact same gray level to a monochrome camera — and the wrong LED color is usually why.
The Physical Problem
Most machine vision cameras are monochrome sensors: they measure light intensity, not hue. Under a given illumination wavelength, a red feature on a green background might reflect almost identically to how the green background reflects, producing two regions of nearly the same gray level in the image — even though a human eye, with its three types of color receptors, would separate them instantly. Pick the wrong wavelength, and a perfectly visible color-coded defect, print, or component simply disappears into the background as far as the camera is concerned.
The Optical Solution
A colored surface strongly reflects light of its own color and strongly absorbs light of the complementary color on the color wheel — a direct, well-established consequence of selective reflectance. Illuminating a red feature with red light makes it reflect brightly, appearing light in the image; illuminating that same red feature with blue or green light instead makes it absorb strongly, appearing dark. Maximizing contrast between two differently colored regions is therefore a matter of choosing a wavelength that one region reflects and the other absorbs — brightening what you want visible, and darkening what you want suppressed, before the camera ever sees a single pixel.
Wiring & Integration Recommendations
Wavelength choice is purely optical: it changes nothing about the standard M12 pinout of our lights. Because White, Red, Blue and Infrared share the same connector and 24VDC supply across a given range, testing several colors on your application requires no rewiring at all.
Not Sure About the Optical Result?
Borrow a demo kit to test on your own bench, or send us a sample of your part for a free contrast analysis in our lab.
Test on Sample or Borrow EquipmentAsk an Application Engineer
Describe your inspection challenge and one of our engineers will recommend the right optical approach.
Recommended Lighting Formats
Integration Tools
Application Notes & Optical Challenge Resolution
Three engineering application notes showing how the right optical principle — not a different camera or software — resolves the inspection challenge.
Industrial Context
Food & Beverage / PackagingOptical Problem
Saturating glare on glossy plastic film during seal inspection.
Solution & Geometry
630nm Diffuse Dome Lighting (omnidirectional light).
Physical Result
Elimination of the specular hot spot and light homogeneity above 90%.
Industrial Context
Pharmaceutical / VialsOptical Problem
Liquid fill-level inspection through an opaque amber glass vial.
Solution & Geometry
850nm Infrared Backlight, transmitted through the tinted glass.
Physical Result
Optimal transmittance through the liquid, clean contrast on the meniscus.
Industrial Context
Metalworking / AutomotiveOptical Problem
Reading a laser-marked Data Matrix (DPM) code on a machined metal surface.
Solution & Geometry
Darkfield Grazing Light + Crossed Polarization.
Physical Result
Cancellation of directional glare, clean separation of the code's micro-relief.
Application notes based on real physical and optical principles — exact outcomes depend on your configuration and are validated during a lab sample test.