Since: Version 20220807-113146-c2fee766
The functionality described in this section requires version 20220807-113146-c2fee766 of wezterm, or a more recent version.
Computes the contrast ratio between the two colors.
The contrast ratio is computed by first converting to HSL, taking the L components, and diving the lighter one by the darker one.
A contrast ratio of 1 means no contrast.
The maximum possible contrast ratio is 21: