TinyColor is a micro framework for inputting colors and outputting colors as different formats. Input is meant to be as permissive as possible.
The following color types are supported: RGB, HSL, HSV, Hex, Name (from SVG color codes)
Website Demo