Originally from Color Mixer [github.com/elecricmango/color-mixer]