How to use the Chrome DevTools color picker

How to open the Chrome DevTools color picker, sample any pixel with the eyedropper, switch hex to RGB or OKLCH, check contrast and list every colour on a page.

A clear glass pipette holds one orange droplet above the centre of a flat smoked-glass tile with nine square cells.

The Chrome DevTools color picker opens when you click the small colour square beside any color value in the Styles pane. From there you can sample any pixel with the eyedropper, convert hex to RGB, HSL or OKLCH, and read the text’s contrast ratio, which turns “the grey looks too light” into a number a developer can fix.

How to open the color picker in Chrome DevTools

The colour picker lives inside the Elements panel, next to the CSS of whatever element you have selected. Google’s page on the Color Picker, read on 2026-11-16, gives the route, and the DevTools shortcuts page the keys.

  1. Select an element. Right-click it on the page and choose Inspect, or press Ctrl+Shift+C on Windows and Linux, Cmd+Option+C on a Mac, and click it. Our guide on how to inspect element covers every browser and the phone routes.
  2. Find a colour in the Styles pane. Look for a color declaration or any *-color one, such as background-color or border-color. To the left of each value is a small square showing the colour.
  3. Click the square. The Color Picker opens over the Styles pane.

If the element has no colour declaration of its own, add one. Google’s CSS features reference has you click between the brackets of the element.style section, type a property such as color, press Enter and type any valid value. The square appears next to it and the picker is one click away. Remember that the colour you see may be inherited: the Computed tab shows the value that actually applies.

The picker has thirteen parts, and Google’s documentation names each one. These are the ones a reviewer uses most:

Part of the Color PickerWhat it does
Shades and colour circleDrag the circle across the shades to change the colour
EyedropperSamples a colour from the page or anywhere on the screen
Copy to clipboardCopies the display value
Display value and switcherShows the colour in the chosen colour space, and changes the space
Hue and opacity slidersChange the hue and the alpha channel
Contrast ratioShown only for color values, against the background-color
Gamut boundarySeparates HD colours from non-HD ones, for the newer colour spaces
Colour palette and switcherMaterial, Custom, CSS Variables and Page colors palettes

Sample any pixel with the eyedropper

The eyedropper is the reason most people search for this tool. With the Color Picker open, click the eyedropper button or press C, hover over the colour you want and click. Press Escape to turn it off. Google’s Color Picker page says it samples colours both from the page and from anywhere on the screen, so you can take a colour from a design file open in another window and drop it onto the live element to compare.

Two details save confusion:

  • Sampling changes the declaration. The sampled colour replaces the value you opened the picker from, in your browser only. Reload the page and the original comes back. That is useful for trying a fix and harmless to the live site.
  • The eyedropper works in sRGB. The same page notes that it samples only in the sRGB colour space and clips anything outside it to the nearest colour. A wide-gamut brand colour sampled from a photo can therefore read slightly differently from the value in the design file.

Copying the result is one click on the copy button. From the Styles pane you can also right-click the declaration and choose Copy value or Copy declaration, which the CSS reference lists alongside Copy all CSS changes for when you have edited several values.

Switch between hex, RGB, HSL and OKLCH

The display value switcher changes the format, and DevTools converts the value as you switch. There is a quicker route too: Shift-click the colour square in the Styles pane and a menu of formats opens without the picker. Google’s Color Picker page lists the choices:

  • #hex, rgb(), hsl() and hwb()
  • the newer spaces lch(), oklch(), lab() and oklab()
  • any space written with the color() function

The same page says that from Chrome 112 the Styles pane supports 12 new colour spaces and 7 new gamuts from CSS Color Level 4, plus color-mix() from Level 5. Converting from an HD colour to a non-HD space clips the gamut to fit, and DevTools marks each clipped value with a warning icon; hover over it to see the original. A hex value copied from a converted oklch() colour is therefore an approximation when the warning shows.

The palette switcher at the bottom of the picker is the other half of format work. The Page colors palette lists every colour DevTools finds in your stylesheets, and CSS Variables lists the page’s custom properties. When a developer has used #3a3a3a where the design system says var(--text-muted), that palette shows the variable they should have used.

Check and fix contrast with the color picker

Contrast is where the picker earns its place in a review. Open it next to an element’s color value and the Contrast ratio line shows the ratio against its background. Google’s documentation adds a key point: DevTools calculates the ratio only for color values and relative to the matching background-color, so a background-color swatch has no contrast section.

Expand the Contrast ratio line to fix a failing pair. Google’s guide to making a website more readable shows the steps: the picker says whether the pair meets the AA or AAA level, a Use suggested color button applies a value that passes, and two lines on the shades preview mark the AA and AAA limits, so you can drag the circle below a line to choose your own. The Color Picker page says the suggestions follow APCA by default and switch to WebAIM’s AA and AAA guidelines when you clear the Advanced Perceptual Contrast Algorithm (APCA) checkbox in Settings, Preferences, Elements.

The levels themselves come from WCAG. The W3C’s notes on success criterion 1.4.3 set 4.5:1 for normal text and 3:1 for large text, at least 18 point or 14 point bold, at level AA, and 7:1 at AAA. The same notes say a computed ratio is not rounded, so 4.499:1 fails 4.5:1. A ratio the picker shows as just under the line is a fail, whatever it looks like.

Two quicker checks sit next to the picker. With the element picker on, Google’s inspect mode page says the tooltip shows the contrast ratio when you hover over text, along with its colours and font. And the picker works one element at a time, so a page-wide pass belongs in the next section. For the full list of what to check beyond colour, our accessibility checklist covers the rest of WCAG 2.2 AA.

List every colour on a page with CSS Overview

The colour picker answers “what is this colour?” for one element. CSS Overview answers it for the whole page. Google’s CSS Overview page gives the route: open DevTools, choose Customize and control DevTools, then More tools, then CSS Overview, and click Capture overview.

The report’s Colors section lists every colour on the page, grouped by type, such as background colours and text colours, and shows text with low contrast. Each colour is clickable: click a border colour that does not belong to the design and you get the list of elements that use it, hover over one to highlight it on the page, and click it to open it in the Elements panel. The readability guide adds two more ways to collect contrast problems in one go, a Lighthouse report with the Accessibility category ticked and an experimental contrast setting in the Issues tab.

This is the quickest way to find colour drift before a launch. A page that should use six greys and shows fourteen in CSS Overview has hard-coded values somewhere, and the clickable list names the elements. Our design QA checklist puts that check next to type, spacing and breakpoints.

Turn a colour finding into a bug report

A colour you changed in DevTools exists only in your browser, so the finding has to leave as a report. A good colour report names five things, and the picker hands you most of them:

  1. The element, with its selector or a screenshot of it highlighted in the Elements panel.
  2. The value it has, copied from the Styles pane, and whether it was set there or inherited.
  3. The value it should have, from the design file or the design system variable.
  4. The contrast ratio, as the picker shows it, and the level it fails.
  5. The fix you tried, if you used a suggested colour, with the value that passed.

Each of those is a visual bug a developer can act on at once, where “the button text is hard to read” starts a conversation. Colour problems are also the ones a screenshot shows best, which is why an annotated screenshot carries them well. A report filed through Notarus attaches the annotated screenshot with the page URL, browser and viewport, as the evidence capture page sets out, so the reviewer adds the values from the picker and the developer sees the problem and the numbers on one page.

Common questions

Is there an eyedropper in Chrome DevTools?

Chrome DevTools has an eyedropper inside its Color Picker. Select an element, click the small colour square next to a color value in the Styles pane, then click the eyedropper button or press C. Google's documentation says it samples colours from the page and from anywhere on the screen, and Escape turns it off.

How do I pick a color from a website in Chrome?

Right-click the page and choose Inspect, then in the Styles pane click the colour swatch beside any color or background-color value. When the Color Picker opens, turn on the eyedropper and click the pixel you want. The picker shows the sampled value, and the copy button puts it on your clipboard.

How do I get the hex code of a color in Chrome DevTools?

Open the Color Picker from a swatch in the Styles pane and choose hex in the display value switcher, or Shift-click the swatch to pick the format straight from a menu. DevTools converts the value for you. Click the copy button, or right-click the declaration and choose Copy value.

Can the Chrome DevTools eyedropper pick colors outside the browser?

Google's Color Picker documentation says the eyedropper samples colours both from the page and from anywhere on the screen, so a mock-up open in another app can be sampled too. The same page notes that it samples only in the sRGB colour space and clips a colour outside sRGB to the nearest one.

How do I check color contrast in Chrome DevTools?

Hover over text with the element picker on and the tooltip shows its contrast ratio. For a closer look, open the Color Picker next to the element's color value and expand the Contrast ratio section, which shows the ratio against the background and offers a suggested colour. CSS Overview lists every contrast issue on the page.

How do I change the color format in Chrome DevTools?

Shift-click the colour swatch next to a value in the Styles pane and choose a format from the menu, or use the display value switcher inside the Color Picker. Google lists hex, rgb, hsl and hwb, the newer lch, oklch, lab and oklab spaces, and the color() function.

The Notarus team

The people who build Notarus. We write up the decisions behind the product when the reasoning is worth more than the changelog line.

Keep reading

Reports with the evidence attached.

Start free, one script tag.

<script src="…/widget.js" data-key="pb_pub_…">