Optional
The first color in Hex format
The second color in Hex format
The contrast value, or NaN if one of the colors provided is not valid.
Computes the contrast between two colors.
The first color in Hex format