1 The idea
A lens bends each colour slightly differently, so colour fringes appear towards the frame edge. CG without any looks too clean. Here we add it by scaling red up a touch and blue down a touch around the centre. The lab starts at red ×1.004 and blue ×0.996, stronger than a real lens so you can see it (real shots are often nearer 1.002 / 0.998). On a real lens, which colour spreads which way depends on the lens, so read it from the plate.
Use as little as the plate shows, and place it after glows and before grain, like the real lens order.
2 Hands-on in the mini compositor
Red and blue drift apart towards the frame edge
Where the numbers come from: Computed in your browser. Saturation, Multiply, Clamp, Invert, Keymix, Copy and Grade are checked against node-based compositing software. Blur, Defocus, Glow, Sharpen, ChromaticAberration, Vignette, LensDistort, Grain, Erode, Toe, the Keyer and Despill are teaching versions, not identical to Nuke’s nodes. Transform here is also a teaching version: bilinear filtering, no concatenation, cropped at the frame edge. Images are our own Blender renders (the green screen is fully code-built; the desert scene uses Gaea 2.3 hills, a Poly Haven CC0 HDRI sky, Poly Haven CC0 rocks and grass, Quixel sand and cliff textures and a Mixamo rig for the robot, with Quixel and Mixamo used in the renders only).