If you want to match on a frame by frame basis, you could use the function HistogramAdjust inside a ScriptClip.
HistogramAdjust only matches the luma, but with some clever use of UtoY and VToY you could use it to match all channels. (Similarly, I imagine a combination of ShowRed/Blue/Green and MergeRGB could be used to do the matching in RGB colourspace.)