Added RGB conversion

Added conversion to and from RGB. I found this needed when generating
colors for rgba style backrounds in CSS.