--- title: ColorPicker description: Allow users to select a color from a color palette. api_version: 2026-01 api_name: admin-extensions source_url: html: >- https://shopify.dev/docs/api/admin-extensions/latest/polaris-web-components/forms/colorpicker md: >- https://shopify.dev/docs/api/admin-extensions/latest/polaris-web-components/forms/colorpicker.md --- # Color​Picker Allow users to select a color from a color palette. ## Properties * **alpha** **boolean** **Default: false** Allow user to select an alpha value. * **defaultValue** **string** The default value for the field. * **formResetCallback** **() => void** * **name** **string** An identifier for the field that is unique within the nearest containing form. * **value** **string** The currently selected color. Supported formats include: * HSL ## Events Learn more about [registering events](https://shopify.dev/docs/api/app-home/using-polaris-components#event-handling). * **change** **CallbackEventListener\ | null** * **input** **CallbackEventListener\ | null** ### CallbackEventListener ```ts (EventListener & { (event: CallbackEvent): void; }) | null ``` ### CallbackEvent ```ts Event & { currentTarget: HTMLElementTagNameMap[T]; } ``` Examples ### Examples * #### Code ##### jsx ```jsx ``` ##### html ```html ``` * #### Basic usage ##### Description Demonstrates a simple color picker with a pre-selected red color, showing the basic implementation without alpha transparency. ##### jsx ```jsx ``` ##### html ```html ``` * #### With alpha transparency ##### Description Illustrates a color picker with alpha transparency enabled, allowing selection of colors with varying opacity levels. ##### jsx ```jsx ``` ##### html ```html ``` ## Best practices * Use the alpha slider if you want to allow merchants to select a transparent color