Re-post of what used to be at github.com/ars/uicolor-utilities, but has since been taken down