added color value out of 1, fixed hexlength bug