switch option opacity to rgba value