You get the contrast ratio between two colors, from 1 to 21, rounded to one decimal.
{{ '#495859' | color_contrast: '#fffffb' }}
Output
7.4