Convert colors in JavaScript from ryb to rgb