calculateTonalContrastRatio
Computes the contrast ratio of the tonal values between two colors.
Tonal contrast ratio is based on perceptual luminance values (T in HCT, L* in Lab*). It is more aligned with human perception of lightness compared to the XYZ color space. This allows designers to assess contrast using perceptually accurate color spaces and make adjustments more intuitively, based on linear differences rather than ratios.
Receiver
The first Color to compare.
Return
The tonal contrast ratio between the two colors, using perceptual luminance.
Parameters
other
The second Color to compare.