Render a rgba element when rgba option is selected

You are returning rgb() instead rgba() when rgba option is selected.