Replaced the palette color index into a real color. Added support for hex decimal color conversion

Will prepare to support hex decimal color specifications instead of a
palette index.