So really, you're saying, "not according to our laws" which wasn't the question. It was a moral philosophical question, so your answer doesn't really address the question. It's not even on the same plane. Your answer is just a glib dismissal of the question's philosophical merit.
The question is, why do you agree with that? Is it because society says so, or are you deriving that belief based on some principles. If so, what?
What is the underlying fundamental reason you believe it's not okay. I get the sense you think it's not okay to experiment on them, but I don't understand why you believe that. I don't believe you think that because other people think that in a democratic society. I get the sense that if society changed its mind and legalized it, I think you would still say it's not right. You'd go along with it, but you'd believe it is wrong.
Fair disclosure: I think it's wrong too. I am not disagreeing with your opinion, but I'm digging for the explanation you believe it. I think I know why I also believe it, but I don't want to explain why I do, because I think you're on to something, but you have to discover it within yourself.
How about experimenting on cell cultures harvested from an adult who was executed by the state?
How about experimenting on cell cultures harvested from an aborted human fetus?
In both cases, the source of the cells doesn't give consent, but their designated caretaker does.
Like many, I'm against capital punishment and wouldn't live in a jurisdiction that applies it so this is hard for me to even imagine.
I hope though that the philosophical aspect of the question doesn't distract us from the clear practical differences between killing a human being and using cells harvested in a questionable way.
Not in a civilized society with a rule of law