You have small typo in your code, Input field are not necessary for Raphael. When you give <input type="text" value="#fff" id="color">
this Raphael assumes color variable as your input field
colour = "#000",
change this code to
color = "#000",
Updated fiddle