Originally from Stefan Petre's color picker