initial rgba conversion