# Hue wheel

> A hue ring around a saturation and brightness square, with HEX, RGB and HSL fields.

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-color-picker-8).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-color-picker-8
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-color-picker-8-light-079e8858979c4629.png
- Registry item: https://reui.io/r/new-york-v4/c-color-picker-8.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-color-picker-8.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `card`, `@reui/color-picker`

## Files

### `c-color-picker-8.tsx`

```tsx
"use client"

import { useState } from "react"
import {
  ColorPicker,
  ColorPickerArea,
  ColorPickerFields,
  ColorPickerWheel,
} from "@/components/reui/color-picker"

import { Card, CardContent } from "@/components/ui/card"

export function Pattern() {
  const [value, setValue] = useState<string | null>("#f43f5e")

  return (
    <Card className="w-fit">
      <CardContent>
        <div className="flex flex-col items-center gap-5">
          <ColorPicker
            value={value}
            onValueChange={setValue}
            aria-label="Brush"
          >
            {/* The area fills the square inside the ring: hue on the ring,
                saturation and brightness in the middle. */}
            <ColorPickerWheel className="size-56">
              <ColorPickerArea className="size-full" />
            </ColorPickerWheel>
            <ColorPickerFields
              formats={["hex", "rgb", "hsl"]}
              className="w-56"
            />
          </ColorPicker>
        </div>
      </CardContent>
    </Card>
  )
}
```
