Color Picker & Palette
Variations
360° Color Wheel Studio with Harmonies & Shades
Advanced 360° canvas spectrum wheel featuring real-time drag tracking, lightness & opacity sliders, live 5-step shades & tints, and 5-color harmony generator.
- Pass
variant"standalone" - renders the 360° spectrum wheel with shades, color harmonies, format selector, and preset swatches.
format"hex" | "rgb" | "hsl"- controls the starting active color format displayed in the input field and clipboard output.
Gradient Studio & CSS Generator
High-tech gradient studio featuring linear/radial/conic gradient modes, 2-stop or 3-stop color selectors, randomize generator, angle compass dial, and one-click CSS copy.
- Pass
variant"gradient" - renders the multi-stop gradient generator widget with preset gallery and CSS copy.
Installation
New project? Follow the installation guide to set up Tailwind CSS, shadcn, the cn helper and lucide-react, register the @algorize-ui registry once, then copy your styles from the Themes page.
Install Color Picker
components/ is written into your project. Copy any snippet from a Usage tab above and it runs.
Install dependencies
Nothing beyond the shared setup — Color Picker needs only the cn helper and lucide-react, which the installation guide already put in place.
Features
ColorPicker component:- 360° Spectrum Color Wheel Canvas: Real-time 2D pointer tracking across the full 360-degree HSL hue & saturation color wheel canvas.
- Shades & Tints Generator: Automatically computes 5 lightness levels (15%, 30%, 50%, 70%, 85%) for any selected color.
- Color Harmonies Generator: Automatically generates Complementary, Analogous 1 & 2, and Triadic 1 & 2 color swatches.
- Multi-Type Gradient Engine: Create Linear, Radial, or Conic gradients with 2-stop or 3-stop color pickers and angle compass dial.
- Randomize Gradient Generator: Generate infinite vibrant gradient combinations at the click of a button.
- Multi-Format Output & Copy: Toggle between
HEX,RGB, andHSLformats with animated copy-to-clipboard feedback. - Native EyeDropper API: Integrated support for screen color sampling via browser EyeDropper API.
Props Reference: ColorPicker
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | "#d0ff00" | The active hex or color string value. |
onChange | (color: string) => void | undefined | Callback function fired when color changes. |
format | "hex" | "rgb" | "hsl" | "hex" | Initial color format displayed in the input field and copy output. |
variant | "standalone" | "gradient" | "standalone" | Display variant: 360° Color Wheel Studio or Gradient Studio Generator. |
showShades | boolean | true | Whether to show the 5-step shades & tints spectrum row. |
showHarmonies | boolean | true | Whether to show the 5-color harmony generator row (Comp, Ana 1/2, Tri 1/2). |
showPresets | boolean | true | Whether to show the preset color swatches row. |
showAlpha | boolean | true | Whether to show the transparency opacity slider. |
showEyeDropper | boolean | true | Whether to show the screen EyeDropper pipette button when supported. |