Skip to main content

Pick Colors and Copy HEX, RGB and HSL Values

Pick a color with the browser color input or the screen eyedropper and copy its HEX, RGB, and HSL values.

Loading tool…

Your file stays in this browser. Nothing is uploaded.

How Color Picker & Palette Inspector works

Browser Toolset Color Picker lets you choose a color with your browser's color input, or sample one from your screen with the native EyeDropper API where the browser supports it. It shows the HEX, RGB and HSL values with a copy button for each, all in browser memory.

How to use this tool

  1. Click "Sample Screen" to pick any pixel color from your display (shown only in browsers that support the EyeDropper API).
  2. Or click the color bar to open your browser's color chooser and pick a color there.
  3. Read the matching HEX, RGB, and HSL values, which update as you change the color.
  4. Check the large preview swatch to confirm it is the color you want.
  5. Click the copy icon next to HEX, RGB, or HSL to copy that value.

Common uses

  • Frontend developers extracting exact color codes from design mockups.
  • Graphic artists sampling brand colors from photographs and illustrations.
  • UI designers capturing exact color values to use as design tokens.
  • Digital illustrators sampling a color and converting it to HEX, RGB, or HSL.

Frequently asked questions

Can I pick colors directly from other desktop windows?

Yes, in browsers that support the EyeDropper API, such as Chrome and Edge. Click "Sample Screen" and then click any pixel on your screen. In other browsers the button is hidden, but you can still use the color chooser.

Are my color palettes stored on external servers?

No. The color picker works in your browser and the colors you choose are not uploaded. The tool does not save them, so reloading the page returns to the default blue (#3B82F6); copy any values you want to keep.

Does it generate tints and shades automatically?

No. This tool shows one color at a time with its HEX, RGB and HSL values. It does not generate tints, shades or harmony palettes.

Can I copy CSS color values directly?

Yes. Separate copy buttons give you the HEX code, the rgb(r, g, b) value and the hsl(h, s%, l%) value, each ready to paste into a stylesheet. The HSL numbers are rounded to whole numbers.

Does it check WCAG contrast?

No. This tool does not check WCAG contrast. Use the WCAG Color Contrast Checker, which tests a text color against a background color and shows pass or fail for AA and AAA at normal and large text sizes.

Details and limits

Color consistency defines brand identity. Our Color Picker combines screen eyedropper sampling (where supported) with instant HEX, RGB and HSL values so developers and artists can capture and copy colors quickly.

Picking colors on your own device

Colors are read and shown in your browser, nothing is uploaded and nothing is saved. The page opens on #3b82f6. There are two ways to change it. The color box opens your browser's own picker, whose look depends on your browser and operating system. The Sample Screen button uses the browser's EyeDropper feature, and you then click a pixel on your screen to take its color.

The Sample Screen button appears only when your browser provides EyeDropper. If it is missing, use the color box. Pressing Escape during sampling cancels quietly. The readout lists HEX in capitals, rgb() and hsl(), each with a Copy button that shows a check mark for two seconds.

Features and limits

  • Outputs are a six-digit HEX code, rgb(r, g, b) and hsl(h, s%, l%) with whole numbers. HSL is rounded, so converting it back may not reproduce the exact original pixel.
  • There is no alpha channel, no CMYK, and no tints, shades or harmony palettes on this page. For CMYK use the Color Code Converter.
  • You cannot type a color code here. Start from a code you already have in the Color Code Converter, which reads HEX, RGB and HSL text.
  • The check mark appears only after the browser confirms the copy. If the browser blocks clipboard access, no check mark appears and nothing is copied.
  • One color is held at a time, and there is no history. Copy a value before you pick the next one.

Tips for accurate sampling

Sample from a flat area. Photos, gradients and compressed images vary pixel by pixel, and scaled or blurry screenshots shift colors a little, so a single pixel at an edge can be misleading.

A color on screen is also affected by any filter your system applies, such as a night mode, so turn those off when you need to match a brand color.

Check that text stays readable on a color with the WCAG Color Contrast Checker. Build a set of related colors with the Color Palette Generator, or take dominant colors from a photo with the Color Palette Extractor.