# RGB and HEX Input Formats

As of the end of 2021, the ColorPicker supports both RGB and HEX formats as input through its [formats](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/colorpicker/configuration/formats) configuration. To choose the default format, you can use the [format](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/colorpicker/configuration/format) option:

```dojo
    <input id="rgb-picker" />
    <input id="hex-picker" />

    <script>
        $("#rgb-picker").kendoColorPicker({
            preview: false,
            format: "rgb",
            formats: ["rgb", "hex"]
        });

        $("#hex-picker").kendoColorPicker({
            preview: false,
            format: "hex",
            formats: ["rgb", "hex"]
        });
    </script>
```

## See Also

* [RGB and HEX formats of the ColorPicker (Demo)](https://demos.telerik.com/kendo-ui/colorpicker/rgb-hex)
* [JavaScript API Reference of the ColorPicker](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/colorpicker)
