About the Color Picker tool
Designers, developers and students constantly need the exact code for a colour: a HEX value for CSS, an RGB value for a design tool, or an HSL value to make a lighter or darker shade. This colour picker lets you choose any colour visually and immediately shows it in all three formats, each with its own copy button.
Click the colour bar to open your device’s native colour chooser. On most systems you can drag across a spectrum, type exact values, or use the built-in eyedropper to sample a colour from anywhere on screen. A large swatch shows the selected colour, and the HEX, RGB and HSL codes update the moment you pick something new. HSL is especially handy when you want a hover state or a pastel version of a brand colour, because you only need to change the lightness number.
The conversion is done with simple maths right in your browser, so it is instant and works offline once the page has loaded. There are no sign-ups, no ads inside the tool and nothing is stored.
How to use Color Picker
- Click the colour bar below the swatch to open the colour chooser.
- Pick a colour from the spectrum, type a value, or use your system’s eyedropper if it has one.
- Read the HEX, RGB and HSL codes shown under the swatch.
- Click the copy icon next to the format you need and paste it into your code or design app.
Features
Three formats at once
See HEX, RGB and HSL side by side without switching modes.
One-click copy
Each format has its own copy button, ready to paste into CSS, Figma, Canva or PowerPoint.
Large preview swatch
A big colour block makes it easy to judge the shade before you use it.
Native picker
Uses your operating system’s colour chooser, which on many devices includes an eyedropper.
Works offline
After the page loads, colour conversion needs no internet connection because it is plain maths in your browser.
When to use it
- Find the HEX code for a brand colour to use in a website stylesheet.
- Convert a HEX value from a style guide into RGB for a presentation or video tool.
- Get HSL values to create lighter and darker variants of the same hue.
- Match a colour for a school project, poster or social media graphic.
- Check what a colour looks like before ordering paint samples or printing a banner.
Frequently asked questions
What is the difference between HEX, RGB and HSL?
They describe the same colour in different ways. HEX and RGB give red, green and blue amounts, while HSL uses hue, saturation and lightness, which is easier to adjust by hand.
Can I pick a colour from an image or my screen?
The tool uses your browser’s built-in colour chooser. On Windows and macOS with Chrome or Edge it includes an eyedropper that can sample colours from the screen.
Can I type a HEX code directly?
Yes, most native colour choosers let you type a HEX or RGB value. The codes shown in the tool update as soon as you confirm the colour.
Does it support transparency?
No. The picker works with solid colours only, so there is no alpha channel in the output.
Is the RGB value rounded?
RGB values are exact whole numbers from 0 to 255. HSL values are rounded to whole degrees and percentages.
How do I use the HEX code in CSS?
Copy the HEX value and paste it into your stylesheet, for example color: #F97316; or background-color: #F97316;. The RGB and HSL values can be pasted the same way as rgb() and hsl() functions.