Color Picker
Compose any color with hue, saturation and lightness sliders — synced live with HEX input, your browser’s native picker and every CSS format from RGB to OKLCH. Free and 100% in your browser.
Closest CSS name: royalblue
| Format | Value | Copy |
|---|---|---|
| HEX | #3264c8 | |
| RGB | rgb(50, 100, 200) | |
| HSL | hsl(220, 60%, 49%) | |
| HSV / HSB | hsv(220, 75%, 78.4%) | |
| CMYK | cmyk(75%, 50%, 0%, 21.6%) | |
| CIE Lab | lab(43.26 10.74 -58.13) | |
| CIE LCH | lch(43.26 59.11 280.47) | |
| OKLab | oklab(0.5248 -0.0221 -0.1636) | |
| OKLCH | oklch(52.48% 0.1651 262.3) |
Thinking in hue, saturation and lightness
Composing a color channel by channel in RGB is like steering a boat by adjusting three propellers — possible, but nothing maps to intent. HSL matches how people describe color: which color (hue), how vivid (saturation), how bright (lightness). A productive picking routine uses the sliders top to bottom: park the hue in the right region first — reds near 0°, yellows near 60°, greens around 120°, cyans 180°, blues 220–250°, purples 270–300° — then pull saturation down from pure until the color stops shouting, and finally set lightness for context: text wants the extremes, backgrounds live near them, brand colors usually sit between 35% and 60%.
Slider, wheel or code — same cylinder
Color wheels and sliders visualize the same HSL cylinder: the wheel shows the hue angle with saturation as the radius, and a separate control adds lightness. Sliders trade the wheel’s at-a-glance geometry for precision — each dimension moves independently, keyboard arrows nudge single steps, and the gradient painted on each track previews exactly where you are heading before you move. That preview is live here: change the hue and the saturation track repaints for that hue immediately.
The catch in HSL — and why OKLCH is listed too
HSL’s lightness is a geometric convenience, not a perceptual measurement. Yellow at hsl(60, 100%, 50%) looks far brighter than blue at hsl(240, 100%, 50%) despite the identical number — which is how “same lightness” UI palettes end up with some swatches glowing and others brooding. The format table therefore always shows OKLCH, the modern CSS space whose L value tracks perceived brightness across hues. A practical workflow: compose here in HSL for speed, then compare the OKLCH L numbers of your palette entries — if they differ wildly, the palette will look uneven.
From this page into your project
- CSS: copy the hex row for maximum compatibility, or the
oklch()row for modern stylesheets and wide-gamut readiness. - Design tools: Figma and Sketch accept hex directly; the HSV/HSB row matches their internal pickers.
- Print-adjacent work: the CMYK row is the standard naive approximation — treat it as orientation, not prepress.
- Later use: “Save to my colors” keeps the color in the tray shared by every tool on this site.
Nothing you pick leaves your browser — the page works offline once loaded. When the color you need exists only inside a photo or screenshot, switch to the color picker from image on the home page; and before committing a text/background pair, run it through the contrast checker.
Frequently asked questions
How do I pick a color from an image instead of sliders?
Use the color picker from image on the home page — drop or paste any picture and pick pixels with a zoom magnifier. This page is for composing a color from scratch.
What do the three sliders mean?
Hue chooses the position on the color wheel (0–360 degrees), saturation how vivid the color is (0% gray to 100% pure), and lightness how bright it is (0% black through 50% pure color to 100% white).
Why does 50% lightness look brighter for some hues than others?
HSL treats lightness geometrically, not perceptually — yellow at 50% appears far lighter to the eye than blue at 50%. That is why this page also shows OKLCH, whose lightness value matches perception across hues.
How do I use the picked color in CSS?
Copy any row: hex works everywhere (color: #3564c4), rgb()/hsl() are classic CSS, and oklch() is modern CSS supported by all current browsers.
Can I adjust the sliders with the keyboard?
Yes — focus a slider with Tab and use the arrow keys for single steps. That is often the fastest way to fine-tune the last few percent.