RGB文字列を数値に変換 ref: http://qiita.com/kencoba/items/c543be233e291e2ce064