No upload — runs in your browser

Color Picker

Pick a colour and read its HEX, RGB and HSL codes side by side. Change any one of them and the other two follow straight away, so a colour written down in one notation becomes usable in the others. Copy whichever code you need with one click — no sign-up, nothing to install, no file to upload.

Use the swatch, or type a code such as #0f766e — 3 or 6 digits, with or without the #.

RGB

HSL

One colour, three notations

A colour rarely arrives in the notation the code expects. A hand-off gives you #0f766e, the stylesheet you are editing wants rgb(), and the person reviewing the artwork is thinking “a bit lighter”. Those are the same colour written three ways, and doing the arithmetic by hand is exactly the kind of small task that goes wrong without anyone noticing.

This page keeps all three in step. Move the swatch, retype a hex code, nudge one channel number or turn the hue, and the others follow at once — so you copy out the version your file needs instead of converting anything yourself.

Which notation to reach for

NotationWhere you meet it
HEX#0f766e — six digits, two per channel. The default in design hand-offs, CSS variables and swatch libraries: short, exact, easy to paste into anything.
RGBrgb(15, 118, 110) — the three channels as 0–255 values. Common in older CSS, in graphics APIs, and wherever a colour has to be computed rather than typed.
HSLhsl(175, 77%, 26%) — hue, saturation, lightness. The one to use when you want to derive a colour: same hue and saturation with less lightness gives you a darker version that still reads as related.

A picker with nothing to process

Every other tool here takes a file; this one takes a decision. There is no image to decode and no worker to start, so the whole interaction is arithmetic on numbers you can see on screen — which is also why it stays instant on a phone.

One behaviour is worth knowing, because it looks like a bug and is not: hue has no meaning for grey. Lower the saturation to zero and the colour becomes grey while the hue value stays where you left it, so raising the saturation again brings back the colour you meant instead of resetting to red.

Why typed numbers come back changed

Every field on this page has a real range behind it, and a value outside that range describes a colour that cannot be shown. Red, green and blue run from 0 to 255 — there is no red brighter than 255, so 300 comes back as 255. Saturation and lightness are percentages and stop at 100. The correction you see after leaving a field is the page telling the truth about what the colour is able to be.

Hue is the single value that wraps rather than clipping, because hue is an angle: 360° points the same way as 0°, so typing 400 lands on 40. That is also why the field takes values past its nominal 0–359 range — refusing them would be arbitrary when the arithmetic is perfectly well defined.

Taking the code somewhere else

If you are…Go to
Choosing the colour behind a site iconA launcher icon sits on a background of its own, so the colour picked here is the one that has to work against it.
Picking a colour for watermark textThe watermark colour is chosen on this page and typed in there, which is the whole reason all three notations are shown together.
Exporting artwork to a raster fileConfirm the exact fill before export — a rasterised icon keeps whatever the vector said, not what it looked like on screen.

Frequently asked questions

How do I use this colour picker?

Open the swatch on the left to choose a colour, or type a code straight into the HEX field. Everything else follows: the RGB channels, the HSL channels and the three code strings below all describe the same colour. Change any one of them and the rest update, so you can copy out the notation your file expects.

What is the difference between HEX, RGB and HSL?

They are three ways of writing the same colour. HEX packs the three channels into six hexadecimal digits (#0f766e) and is what most design hand-offs and CSS variables use. RGB gives those channels as three numbers from 0 to 255. HSL describes the colour the way people talk about it — hue in degrees, saturation and lightness as percentages — which makes it the useful one when you want the same colour a little darker rather than a different colour.

Can I paste a code I already have?

Yes, into the HEX field. Three digits (#f00) and six digits (#ff0000) both work, with or without the leading hash, in upper or lower case. A code with eight digits is not accepted: the last two would be transparency, and this tool would rather say it does not recognise the code than quietly drop the two digits you pasted.

The number I typed changed by itself — why?

Each channel has a real range: 0–255 for red, green and blue, 0–100% for saturation and lightness, and 0–359 degrees for hue. A value outside its range snaps to the nearest allowed one once you leave the field, because a colour cannot be brighter than 255. Hue wraps instead of clipping — 360 degrees points the same way as 0 — so typing 400 gives you 40.

Is it free, and is anything sent anywhere?

Free, with no account. Converting between these notations is a handful of arithmetic operations, so the page does it itself. There is no file to upload and no colour code of yours is sent to a server.

The hue number stays put when the colour turns grey — why?

Because hue stops meaning anything once saturation reaches zero. Drop saturation to zero and the colour becomes grey while the hue value stays where you left it, so raising saturation again brings back the colour you started from instead of resetting to red. It looks like a field that has stopped responding, and is in fact a value being held for you.

Can I pick a colour straight off an image, or from my screen?

Not here — there is no eyedropper. Reading a pixel off a picture means holding the file, decoding it and tracking a cursor over it, which is a different tool from a code converter. If you already have the colour somewhere, type or paste its code and the other two notations follow.

Why is there no CMYK or HSB output?

Because both would be guesses dressed up as numbers. CMYK describes ink on a press, and the conversion depends on the printer profile and the paper — a web page has neither, so any CMYK value shown here would be close to meaningless for the print job it was meant to serve. HSB is the same shape as HSL with brightness in place of lightness; the arithmetic is trivial, but a fourth label for the same colour makes the page harder to read rather than more useful.

Does the page remember the colours I used last time?

No. Nothing is kept between visits — no cookie, no browser storage, no history. The page opens on the same starting colour every time, which is also why there is nothing to clear: closing the tab leaves no trace of what you picked.

Other tools

Browse all Developer tools →