BASH: Find color contrast using parameter expansion (and more)

BASH: Find color contrast using parameter expansion (and more)

This is a shell script that calculates the difference in luminance between two colours (contrast ratio). It also is a good example of using BASH parameter expansion to manipulate the value of a variable. Everything you see here is part of my dotfiles: https://gitlab.com/protesilaos/dotfiles