In this paper, we define a generic gradient for color and spectral images, in regards to a proposed taxonomy of the state of the art. The full-vector gradient, taking into account the sensor's characteristics, respects the metrological properties of genericity, robustness and reproducibility. We construct a protocol to compare gradients from different sensors. The comparison is developed simulating sensors using their spectral characteristics. We develop three experiments using this protocol. The first one shows the results consistency for similar sensors. The second one demonstrates the genericity of the approach, adapted to any kind of imaging sensors. The last one focuses on the channel inter-correlation considering sensors as in the color vision deficiency case.