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.
- 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.
- Find a colour in the Styles pane. Look for a
colordeclaration or any*-colorone, such asbackground-colororborder-color. To the left of each value is a small square showing the colour. - 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 Picker | What it does |
|---|---|
| Shades and colour circle | Drag the circle across the shades to change the colour |
| Eyedropper | Samples a colour from the page or anywhere on the screen |
| Copy to clipboard | Copies the display value |
| Display value and switcher | Shows the colour in the chosen colour space, and changes the space |
| Hue and opacity sliders | Change the hue and the alpha channel |
| Contrast ratio | Shown only for color values, against the background-color |
| Gamut boundary | Separates HD colours from non-HD ones, for the newer colour spaces |
| Colour palette and switcher | Material, 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()andhwb()- the newer spaces
lch(),oklch(),lab()andoklab() - 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:
- The element, with its selector or a screenshot of it highlighted in the Elements panel.
- The value it has, copied from the Styles pane, and whether it was set there or inherited.
- The value it should have, from the design file or the design system variable.
- The contrast ratio, as the picker shows it, and the level it fails.
- 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.