Fixed colour issue caused by 3-letter colour codes.

Some colours were incorrectly generated because the function expects 6-character hex codes but was being passed 3-character versions. Fixes issue #4.