Color Picker & Converter - HEX, RGB, HSL
Pick colors visually and convert between HEX, RGB, and HSL formats. Copy any color value to your clipboard instantly.
Runs in your browser. No data leaves your device.
About this tool
A visual color picker and converter that shows the current color as HEX, RGB, HSL, OKLCH, and HWB at the same time. Pick with a saturation/brightness pad or a hue ring with a rotating triangle, paste any CSS color, or sample a pixel from the screen. Useful for designers and developers who need a color value in a specific CSS notation.
Features
- Two picker styles: a square saturation/brightness pad, or a hue ring with a rotating saturation/brightness triangle (Pad / Wheel toggle)
- HSV is the internal model, so hue and saturation are kept when you drag to black, white, or gray
- H, S, and V sliders whose gradient tracks preview the result of moving each one, each with a numeric input
- One input that accepts any color the browser can parse (hex with or without #, rgb(), hsl(), hwb(), oklch(), lab(), CSS named colors) plus casual names from the XKCD color survey list such as "grape" or "sky blue"
- Live output in HEX, RGB, HSL, OKLCH, and HWB; each row can be edited directly and has a copy button; one Pipeline button sends the format copied last (HEX until then)
- Screen eyedropper using the browser EyeDropper API (button only appears when the browser supports it)
- Tint/shade ramp of 9 swatches: 4 steps mixed toward white (80/60/40/20%), the current color, and 4 steps mixed toward black; click any swatch to select it
- Recent colors list (up to 12), added after the color has been stable for 0.8 seconds so drags do not flood it
How to use it
- Choose Pad or Wheel in the top-right toggle
- Drag in the pad or wheel, or use the H/S/V sliders and number boxes
- Or paste a value such as #3B82F6, rgb(59 130 246), oklch(...), or a name like tomato into the input under the sliders
- Click the copy button next to HEX, RGB, HSL, OKLCH, or HWB to copy that format
- Click a tint/shade swatch or a recent color to switch to it
Inputs
- Pointer or touch drags on the pad, wheel, and sliders
- Hex as #RGB, #RRGGBB, or #RRGGBBAA, with or without the leading #
- Any CSS color string the browser accepts (validated with CSS.supports and parsed via a 1x1 canvas)
- Casual color names from the XKCD survey dictionary (lazy-loaded); apostrophes, hyphens, underscores, and slashes are normalized
Outputs
- HEX (uppercase, e.g. #3B82F6)
- rgb(r, g, b)
- hsl(h, s%, l%) with whole-number values
- oklch(L% C H) with L to 1 decimal, C to 3 decimals, H to 1 decimal
- hwb(h w% b%)
- Copy to clipboard or send to another tool through the Pipeline button
Limits and notes
- Alpha is discarded: the color is stored as opaque HSV, so #RRGGBBAA and rgba() inputs lose their transparency
- Outputs are 8-bit sRGB; wide-gamut inputs (e.g. out-of-sRGB oklch) are converted to what the browser canvas produces
- The eyedropper requires a browser with the EyeDropper API (Chromium-based desktop browsers); otherwise the button is hidden
- Casual-name lookup works only after the name dictionary chunk has loaded
- localStorage: overtooled:color-picker:mode (pad or wheel) and overtooled:color-picker:recent (recent colors). Both are shared with the color swatch popovers used in other tools
- Runs entirely in the browser; nothing is uploaded
Keyboard shortcuts
- Arrow Left/Right on the pad: saturation -/+2 (Shift: 10)
- Arrow Up/Down on the pad: brightness +/-2 (Shift: 10)
- Arrow Left/Right on the wheel: hue -/+3 degrees (Shift: 15)
- Arrow Up/Down on the wheel: brightness +/-2 (Shift: 10)
- Arrow keys on an H/S/V slider: change by 1% of its range (Shift: 5x)
- Enter in a format field: commit and reformat the value
Frequently Asked Questions
How does the Color Picker work?
The color is stored as HSV (hue, saturation, value). In Pad mode the square maps X to saturation and Y to brightness, with a separate hue slider; in Wheel mode the outer ring sets hue and the inner triangle sets saturation and brightness. The HSV value is converted to 8-bit RGB, and from RGB to HEX, HSL, HWB, and OKLCH (via linear sRGB and the OKLab matrices). Keeping HSV as the source means the hue is not lost when you drag to black, white, or gray.
What color formats are supported?
Five output formats update together: HEX (#FF5733), RGB (rgb(255, 87, 51)), HSL (hsl(11, 100%, 60%)), OKLCH (oklch(L% C H)), and HWB (hwb(h w% b%)). Each has a copy button, and one Pipeline button sends the format you copied last. Input accepts these plus any other CSS color the browser understands, such as lab() or named colors.
Can I paste a color code to see it visually?
Yes. Paste into the main input or any of the five format rows: hex (with or without #), rgb(), hsl(), hwb(), oklch(), lab(), CSS names like tomato, or casual names like grape or sky blue. The picker updates as soon as the value parses. Transparency is not kept; the color is treated as opaque.
What is the difference between RGB and HSL?
RGB defines colors by red, green, and blue channel intensity (how screens display color). HSL defines colors by hue, saturation, and lightness, which is more intuitive for picking colors -- you choose a hue, then adjust how vivid and how bright it is.