Color Picker & Converter

Pick a color and copy it as HEX, RGB or HSL. In Chrome and Edge on a desktop, the eyedropper can sample any color on your screen.

Your data stays in your browser

This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data

  • No upload
  • Processed on your device
  • No account

How do I find the HEX code of a color?

Pick it in the color box and the HEX code appears straight away, along with its RGB and HSL versions. If you're on Chrome or Edge on a desktop, the picker has an eyedropper icon. Click it and you can sample a color from any app or website that's visible on your screen, which is handy for matching a brand color from a logo.

What's the difference between HEX, RGB and HSL?

  • HEX (#0d6efd) is the short form you'll see in most design files and CSS.
  • RGB (rgb(13, 110, 253)) spells out the red, green and blue values from 0 to 255.
  • HSL (hsl(216, 98%, 52%)) describes hue, saturation and lightness. It's the easiest to tweak by hand, because you can make a color lighter just by bumping the last number.

Can I use these colors for print?

These are screen colors (sRGB). Printers use CMYK and the same color can look duller on paper, so check against a printed swatch for anything important. Building a web page? You might also find the Markdown to HTML converter and the JSON Formatter useful, and there's more in our image tools.

Questions people ask

How do I convert HEX to RGB?

Pick the color here and both codes are shown side by side. The RGB value is just the three pairs of the HEX code turned into numbers from 0 to 255.

Can I pick a color from my screen?

In Chrome and Edge on desktop, yes. Open the color box and click the eyedropper icon. Safari and Firefox don't offer it in their pickers.

Can I type in a HEX code?

Yes, most browsers' color pickers let you type a HEX or RGB value directly inside the picker window.

Which color format should I use in CSS?

Any of them works. HEX is the most common, and HSL is the easiest to adjust when you want lighter or darker shades.

Are these colors accurate for printing?

They're screen colors. Print uses CMYK and can look different, so compare with a physical swatch for brand work.

Related tools