Color Picker
Pick a colour visually on an HSV square or a perceptual OKLCH plane, with hue and transparency sliders, and read or type it in HEX, RGB, HSL, HSV, HWB, CMYK, Lab, LCH, OKLab or OKLCH.
How to Use
- Drag in the square to choose a colour and use the Hue slider to change the hue. The Alpha slider sets transparency.
- Switch the model to OKLCH to pick lightness and chroma on a perceptual plane; the shaded area is beyond what most screens can show.
- Type or paste into any format field — HEX, RGB, HSL, OKLCH and the rest — and every other field updates. Or search for a CSS name such as coral.
- Click Copy beside any value. Your recent colours are kept below the picker on this device.
Worked Example
The picker’s square is HSV: hue from the slider, saturation across, value (brightness) up. Take hue 217°, saturation 76%, value 96.5%.
Chroma C = V × S = 0.965 × 0.76 = 0.733. The hue sits in the 180–240° sector (blue rising, green falling): H ÷ 60 = 3.62, so X = C × (1 − |3.62 mod 2 − 1|) = 0.733 × 0.38 = 0.279. In that sector (R, G, B) = (0, X, C), and the offset m = V − C = 0.232 is added to each.
Result: (0.232, 0.511, 0.965) × 255 = rgb(59, 130, 246) = #3B82F6. On the OKLCH plane the same colour is lightness 62.3% and chroma 0.188 at hue 259.8° — a different hue number, because OKLCH measures hue on a perceptual wheel.
Show Work
Formulas
From the HSV Square to OKLCH
Alvy Ray Smith designed the HSV model in 1978 at the New York Institute of Technology so that artists could choose colours by hue, saturation and brightness instead of mixing red, green and blue numbers. The saturation-by-value square with a hue strip beside it became the standard picker in paint programs and later in browsers’ <input type="color">.
Its weakness is that “value” is not perceived brightness, so a picker square at one hue looks nothing like the square at another. OKLCH pickers, made practical by Björn Ottosson’s OKLab (2020) and its arrival in CSS, fix lightness to perception and draw the screen’s gamut as a visible edge.
About This Tool
This picker offers two models: the classic HSV square and an OKLCH plane that shows each hue’s sRGB gamut, with shared hue and alpha sliders. Every format field is editable and accepts any CSS colour, and the search box suggests CSS named colours as you type.
The swatch shows the colour over a checkerboard so transparency is visible, with the better text colour, and recent picks are kept on this device. Everything runs in your browser.
Related tools: Universal Color Converter, Color Eyedropper, and Contrast Checker.
Frequently Asked Questions
Why so many formats?
Each fits a job. HEX is compact for CSS and design tools; RGB is universal in code; HSL is easy to adjust by hand; HSV/HSB is what Photoshop’s picker uses; HWB reads naturally (hue plus how much white and black); Lab, LCH, OKLab and OKLCH describe colour as we see it; CMYK is a rough guide for print.
What is the OKLCH picker for?
In OKLCH, lightness means perceived brightness, so moving up the plane makes a colour look lighter by an even amount whatever its hue — unlike HSV, where a “bright” yellow and a “bright” blue look very different. The plane also shows the edge of the sRGB gamut: the most saturated colour a typical screen can show at each lightness, which is different for every hue.
What happens to colours outside the shaded edge?
They are valid in CSS (oklch() can describe them, and wide-gamut screens show some of them), but HEX, RGB, HSL and the other sRGB formats cannot. The picker shows the nearest displayable colour for those formats and keeps the exact value in Lab, LCH, OKLab and OKLCH.
Can I paste a colour?
Yes. Paste any CSS colour — hex, rgb(), hsl(), hwb(), lab(), lch(), oklab(), oklch() or a name — into the search box or any format field, and the picker jumps to it.
How is transparency written?
As a fourth value: rgb(59 130 246 / 0.5) or rgba(59, 130, 246, 0.5), hsl(… / 0.5), oklch(… / 0.5), or an 8-digit hex such as #3B82F680, where the last two digits are the alpha in hex (80 = 128 of 255, about 50%).
How do I use the Color Picker?
Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.
Does it cost anything or need an account?
No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.
Is anything I type uploaded?
No. The tool works entirely on your device, so the values you enter never leave your browser.
Common Use Cases
Choosing a brand colour
Explore a hue on the OKLCH plane to find the most saturated version that still works at your chosen lightness.
Converting while you pick
Paste a hex from old CSS and copy the modern oklch() value for the same colour.
Overlays and tints
Set the alpha to 60% and copy rgb(15 23 42 / 0.6) for a dark overlay on images.
Print estimates
Read off a CMYK estimate for a screen colour before sending artwork to be proofed.
Last updated: