How Nut Color Is Measured
Why Nut Color Has to Be Measured, Not Simply Inspected
Color is the first quality signal a nut buyer sees, and in most kernel markets it is also the first thing written into a contract. A lot of pale, uniform walnut or almond halves trades at a premium; the same lot with a visible share of amber or discolored kernels is discounted, redirected to chopping or roasting, or rejected. Color also carries information about process: it tracks roast development, drying history, skin removal and storage conditions, and it flags defects such as mould, insect damage and incipient rancidity long before a flavor panel would.
That commercial weight is why "looks about right" is no longer an acceptable answer to the question of how nut color is measured. A grade has to be repeatable, defensible to a buyer, and comparable between the receiving dock and the shipping warehouse. In practice, the industry answers the question along three routes: visual grading against published color classes, instrumental measurement with a spectrophotometer, and machine-vision grading on a sorting line. They are not competing answers. They differ in precision, throughput and cost, and most well-run plants use all three at different points.
Path One: Visual Grading Tables and Standard Color Classes
Color classes are named bands of kernel color written into commodity grade standards. In the USDA grade standards for shelled walnuts, almonds and pistachios, the classes run from Extra Light — the palest, most uniform band, used for premium confection and export packs — through Light and Light Amber to Amber, the darkest band still accepted in the top grade. The UN/ECE standards for shelled nuts use a comparable light-to-dark logic, and Chinese national grade systems for walnut and almond kernels describe the same progression in similar language. For measurement purposes, what matters is that each class has a boundary: a point on a color chart above which a kernel is not Extra Light, no matter how good it looks.
Setting up the grading table
A proper visual grading station is a controlled instrument even though it contains no electronics. Kernels are spread in a single layer on a matte, neutral surface — white or light grey, never a colored tray that biases perception — under diffuse illumination in the 5000–6500 K range that approximates north daylight. The reference chart or standard photographs sit beside the sample at the same viewing angle. The inspector then either assigns a class kernel by kernel on a subsample, or, more commonly in commercial lots, estimates the percentage of the sample falling into each class.

Turning classes into a number
The percentage approach converts cleanly into a score. If a walnut sample reads 40 percent Extra Light, 40 percent Light and 20 percent Light Amber, each class is assigned a weight (for example 4, 3, 2, 1) and the weighted average becomes the lot score used in the purchase contract. This is the simplest quantitative answer to how color is graded, and it is still the reference method that instruments are validated against.
Where visual grading falls short
Inspector-to-inspector disagreement is real, especially at class boundaries. Fatigue, ambient light drift and the sheer volume of kernels in a truckload all push error upward. A trained panel grading a few thousand kernels an hour is doing well; a modern line moves far more than that, which is where the other two routes come in.

Path Two: Spectrophotometry and CIELAB
CIELAB is a three-axis color space in which L* describes lightness from black (0) to white (100), a* describes the red–green axis (positive toward red, negative toward green), and b* describes the yellow–blue axis (positive toward yellow, negative toward blue). Because it is device-independent and roughly perceptually uniform, it lets a buyer in one country and a processor in another quote the same color in the same units.
What each channel tells a nut grader
L* is the workhorse channel. It tracks roast development, drying, skin retention and the general kernel brightness that inspectors call lightness, and it is the channel most sensitive to the differences that separate Extra Light from Light. Published machine-vision studies of nut color grading report that the median L* of a kernel sample explains roughly seventy percent of the variance in trained inspectors' visual color scores — a strong result that explains why L* appears in almost every objective grading protocol. The a* channel captures the drift toward red that accompanies ambering, oxidation and uneven roasting. The b* channel captures yellowing, which in kernels often signals skin effects, storage change or variety differences.

Making the reading reproducible
Instrument choice and sample presentation decide whether the numbers mean anything. Bench spectrophotometers with 45/0 or integrating-sphere geometry, a defined aperture, D65 illumination and the 10-degree observer are the usual configuration. Kernels are presented in a filled cell at consistent depth, read several times with rotation, and averaged; the instrument is calibrated against white and black references at the start of each session. Results are then expressed either as absolute L*a*b* values or as ΔE against an agreed reference sample, which is the more practical way to write a specification.
Path Three: Machine Vision and Inline Grading
Machine vision turns color measurement into a continuous, automated operation. Kernels fall or are conveyed past cameras — visible-spectrum, and in some designs near-infrared — under controlled LED illumination, in single or dual view so that both faces of a kernel are seen. The image is segmented: thresholding in a Lab or HSV plane works for clean single-kernel flow, watershed splitting separates touching kernels, and instance-segmentation models such as Mask R-CNN handle crowded or irregular product.
From pixels to grade decisions
For each kernel the system extracts mean and percentile values — typically the 10th, 50th and 90th percentiles of L*, a* and b* plus RGB summaries — rather than a single average, because a dark defect on an otherwise pale kernel disappears in a mean and survives in a low percentile. A threshold rule or trained classifier then assigns each kernel a class, and the ejector bank removes the ones outside specification. Studies validating this approach against trained inspection panels report close agreement on lot-level color scores, with the practical advantage of perfect repeatability: the same camera settings produce the same verdict at midnight as at noon.
What inline grading adds
Throughput of hundreds to thousands of kernels per second, full-lot rather than sample-based inspection, and a permanent record of what was rejected. What it does not do is define the grade. The camera must be taught what the buyer's standard means, which is why the thresholds still trace back to a visual chart and a spectrophotometer.
Combining the Three Paths on One Production Line
The three methods divide labor by purpose. Visual grading and spectrophotometry form the sampling baseline: retained samples from each incoming lot are graded against the standard chart and read on the bench instrument, producing the reference L*a*b* values that define what the lot is and what it should be. Machine vision provides the inline full inspection: the sorter is configured so that its internal color thresholds correspond to the agreed L* cut-offs, and it then applies that decision to every kernel rather than a sample.
Execution sits at the end of the chain: air-jet ejectors remove out-of-spec kernels and foreign material, while accepted product continues to packing. The loop closes when reject samples are periodically re-graded on the table and re-read on the spectrophotometer, confirming that the inline system is still cutting where the contract says it should. Any change of variety, crop year or roast profile should trigger re-validation, because thresholds tuned on last season's product rarely transfer cleanly.
Choosing an Inline Color Sorter for Nut Applications
When a processor moves from sample grading to full inspection, the equipment decision should be driven by four criteria. First, material fit: the machine must handle the actual kernel size range, from small pieces to whole in-shell product, without bridging or missing ejections. Second, detection method: ask what cameras and views are used and whether the color resolution is fine enough to separate the classes that actually matter commercially, not just to remove gross defects. Third, alignment with the grading standard: the vendor should be able to explain how machine thresholds map to L* values and to the buyer's class names. Fourth, acceptance testing: run a split-sample trial, grade the accepted and rejected streams on the visual table, and check repeatability across several runs before signing off.
AB Sorter, the export brand of Alpha Berg Industry, is a Hefei-based manufacturer of optical sorters with more than fifteen years of experience in optical sorting, serving food, recycling and mineral processors. Its food range — the ABM Smart model, a single-layer food sorter and a double-layer model — covers nut and kernel applications, with product-manual figures of 99 percent sorting accuracy and an 8:1 carryover ratio, a particle-size range of 1 mm to 5 cm, and an operating temperature range of −50 °C to +40 °C; customers report ten years of service without component failure under normal maintenance. Buyers can send samples to the Hefei factory or to the test centres in Japan, China, Turkey and Peru for a trial run under the same pre-test procedure, with the sorting result recorded on video and a reply within one business day.
Conclusion and an Action Checklist
Nut color is measured today at three levels of precision, and the strongest programs link all three rather than choosing one. The visual table defines the grade, the spectrophotometer turns it into numbers, and the inline sorter applies those numbers to every kernel that leaves the plant.
For a processing plant moving toward objective color control, the sequence below is a practical starting point:
- Write the color specification in the buyer's own class names, with percentage limits per class.
- Photograph and retain a physical reference sample for every class boundary.
- Establish a bench protocol: D65, 10-degree observer, fixed aperture, five readings per sample, expressed as L*a*b* and ΔE.
- Record the correlation between your inspector panel scores and median L* so you know how much weight the instrument can carry.
- Configure the inline sorter thresholds from those L* values rather than from a default factory setting.
- Run a split-sample acceptance test and re-grade both streams on the visual table.
- Re-validate the whole chain at every variety change, new crop and roast-profile change.
If you want to shorten the trial phase, sending a representative sample for a factory run is the fastest way to see how a specific product grades and sorts. Samples can be sent to the Hefei factory or to the test centres in Japan, China, Turkey and Peru; AB Sorter answers within one business day at 0086 186-5505-3969 by phone or WhatsApp, and enquiries can also be placed through color-sorting-machine.com.
Test your material before you buy
Send your material to our factory for a live sorting test. We confirm the separation result and output before any purchase, and can film the test with your own material.
Request a Quote
Scan to chat on WhatsAppTell us your material
Factory trial with your own sample before purchase.