Added color conversion functions