How to Use a Color Picker
You see a colour you like — in a logo, a photo, a website — and you want its exact code. This guide shows the three ways to pick a colour with a browser color picker, explains the HEX, RGB and HSL formats you will get, and shows what to do with a colour once you have it.
The three ways to pick a colour
The system eyedropper is the fastest way to grab a colour you can see: it samples any pixel on your screen — a logo in another tab, a colour in a design tool, a shade in a photo viewer. It needs a browser that supports the EyeDropper API, which today means Chrome or Edge on desktop. If your browser does not support it, the button is disabled and the other two methods still work.
The image picker works everywhere: upload any picture and click the exact pixel you want. The image is drawn onto a canvas in your browser and the pixel's colour is read directly, so what you click is exactly what you get. The palette is the simplest method of all — your device's built-in colour chooser, for when you already know roughly what you want and just need the code.
HEX, RGB and HSL explained
HEX and RGB: the same numbers, two ways
HEX is the format the web uses most: a hash followed by six digits, two each for red, green and blue. The colour #4F46E5 is an indigo — 79 red, 70 green, 229 blue. RGB writes the same three numbers out in decimal, which is easier to read and adjust by hand. HSL describes the colour differently: hue (the angle on the colour wheel, 0 to 360), saturation (how vivid it is), and lightness (how close to black or white).
Which format to use when
All three describe the same colour, so the choice is about what you are doing. Use HEX in stylesheets and design tools, RGB when you need to tweak a channel numerically, and HSL when you want to make a colour lighter, darker or more muted without changing its basic hue. A good picker shows all three at once, so you can copy whichever one fits.
Pick a colour in four steps
- Choose your method. Open the Color Picker. For any pixel on your screen, click Pick a colour from my screen (Chrome or Edge only), then click the pixel you want.
- Or upload an image. Choose a picture, then click anywhere on it — the pixel under your cursor becomes the picked colour. Or use the palette square to open your device's colour picker.
- Read the values. The swatch shows the picked colour, with its HEX, RGB and HSL values underneath. All three describe the same colour in different formats.
- Copy the format you need. Copy HEX for stylesheets and design tools, RGB for numeric tweaks, or HSL when you want to adjust lightness or saturation.
Using a colour you picked
A starting point, not the finish
A picked colour is a starting point. Paste the HEX code into your stylesheet, your design tool or your slide deck, and it reproduces exactly. If you need a matching set, build a palette around it with a colour palette tool, or blend it into a gradient with a second colour using a gradient generator.
Colours look different on different screens
One caution: colours look different on different screens. A shade picked from a photo will look slightly different on another monitor or in print, because screens and printers do not reproduce colour identically. For brand work, always check the picked colour on the device or medium where it will actually appear.
Other ways to find a colour code
Design tools such as Figma, Canva and Photoshop all have built-in eyedroppers that sample colours from the canvas you are working on. Browser developer tools include a colour picker too — inspect any element and click the colour swatch in the styles panel to see and edit its value.
For a quick one-off pick from an image or a screen, a browser picker is fastest: no software to open, no file to import, and the code is copied in seconds. For colours inside a design you are already editing, the design tool's own eyedropper saves a round trip.
Related guides
- How to Convert HEX to RGB (Free Converter + Formula) — convert HEX colour codes to RGB values.
- How to Minify CSS — strip CSS down to what the browser needs.
- How to Format HTML — lay out HTML so a human can read it.
Questions people ask
Why is the eyedropper button disabled?
The system eyedropper needs the EyeDropper API, which is supported in Chrome and Edge on desktop. Other browsers do not offer it yet — use the image picker or the palette instead, which work everywhere.
What is the difference between HEX, RGB and HSL?
They are three ways to write the same colour. HEX is a six-digit code used in stylesheets, RGB lists the red, green and blue values, and HSL describes hue, saturation and lightness.
Is my uploaded image sent anywhere?
No. The image is drawn onto a canvas in your browser and the pixel colour is read locally. It is never uploaded, stored or shared.
Why does the picked colour look different in my design tool?
Screens reproduce colour slightly differently, and design tools may use different colour profiles. The HEX value is exact — what changes is how each screen displays it.