# RGB and HEX Input Formats

The FlatColorPicker supports both RGB and HEX formats as input through its [`Formats`](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/flatcolorpickerbuilder#formatssystemstring) configuration. To choose the default format, use the [`Format`](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/flatcolorpickerbuilder#formatsystemstring) option:

```Razor HtmlHelper
@(Html.Kendo().FlatColorPicker()
      .Name("rgb")
      .Buttons(true)
      .Value("#ff0000")
      .Format("rgb")
      .Formats(new string[] {"rgb","hex"})
)
```

## See Also

* [RGB and HEX formats of the FlatColorPicker (Demo)](https://demos.telerik.com/aspnet-mvc/flatcolorpicker/rgb-hex)
* [JavaScript API Reference of the FlatColorPicker](https://docs.telerik.com/kendo-ui/api/ui/flatcolorpicker)
