I don't know why is considering that as a RGB notation instead of the color red, but following this progression seems correct:
http://jsfiddle.net/7ACky/2/
red => #red => #0ed => #ed => #ed0 => #eedd00
Could be this?
EDIT: That was wrong:
red => #red => #0ed => #00ed00 seems the correct one.