# ASP.NET MVC ColorPicker Overview

The Telerik UI ColorPicker HtmlHelper for ASP.NET MVC is a server-side wrapper for the Kendo UI ColorPicker widget.

The ColorPicker is a drop-down list for selecting colors.

* [Demo page for the ColorPicker HtmlHelper](https://demos.telerik.com/aspnet-mvc/colorpicker/index)

## Initializing the ColorPicker

The following example demonstrates how to define the ColorPicker.

```Razor HtmlHelper
    @(Html.Kendo().ColorPicker()
          .Name("colorpicker") // The name of the ColorPicker is mandatory. It specifies the "id" attribute of the widget.
          .Value("#ff0000") // Set the value of the ColorPicker.
    )
```

## Basic Configuration

The following example demonstrates how to configure the tile size, columns, `Change` event, and palette colors.

```Razor HtmlHelper

        @(Html.Kendo().ColorPalette()
			.Name("palette")
			.Columns(4)
			.TileSize(s => s.Width(34).Height(19))
			.Palette(new string[] {
				"#f0d0c9", "#e2a293", "#d4735e", "#65281a",
				"#eddfda", "#dcc0b6", "#cba092", "#7b4b3a",
				"#fcecd5", "#f9d9ab", "#f6c781", "#c87d0e",
				"#e1dca5", "#d0c974", "#a29a36", "#514d1b",
				"#c6d9f0", "#8db3e2", "#548dd4", "#17365d"
			})
			.Events(events => events.Change("preview"))
		)
```

## Functionality and Features

| Feature                                                                                                                   | Description                                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Appearance](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/colorpicker/appearance)                | Customize the ColorPicker appearance by using the available options.                                                                                                                                                                                        |
| [Views](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/colorpicker/views)                          | The component allows you to choose between `gradient` or `palette` view types.                                                                                                                                                                              |
| [Contrast Tool](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/colorpicker/contrast-tool)          | The ColorPicker supports a contrast tool.                                                                                                                                                                                                                   |
| [Formats](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/colorpicker/rgb-hex-formats)              | Configure the ColorPicker input formats.                                                                                                                                                                                                                    |
| [Palettes](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/colorpicker/palettes)                    | Define a color palette that the user can pick from.                                                                                                                                                                                                         |
| [Adaptive Mode](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/colorpicker/adaptive-mode)          | The ColorPicker supports an adaptive mode that renders a mobile-friendly popup.                                                                                                                                                                             |
| [Events](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/colorpicker/events)                        | The ColorPicker allows you to handle its events and implement any custom logic.                                                                                                                                                                             |
| [Accessibility](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/colorpicker/accessibility/overview) | The component is accessible for screen readers, supports WAI-ARIA attributes, and delivers [keyboard shortcuts](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/colorpicker/accessibility/keyboard-navigation) for faster navigation. |

## Next Steps

* [Getting Started with the ColorPicker ](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/colorpicker/getting-started)
* [Basic Usage of the ColorPicker HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/colorpicker/index)

## See Also

* [Using the API of the ColorPicker for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/colorpicker/api)
* [Knowledge Base Section](https://www.telerik.com/aspnet-mvc/documentation/knowledge-base)
