Short answer: click the color square in the Styles pane, or change the CSS variable it reads

How to change a website's colors in Chrome DevTools

To change a website's colors in Chrome DevTools, select an element, click the small color square next to a color value in the Styles pane, and pick a new color in the Color Picker. To change every color at once, Recolor (recolor.page) repaints the whole page in a new palette when you load an address and press Space.

Last updated

What Chrome DevTools offers for changing colors, as its docs describe it on 13 Nov 2026, beside Recolor
TaskIn Chrome DevToolsIn Recolor
Change one colorThe Color Picker, from the square next to a color valueA swatch's Adjust, or Site colours
Change every color at onceOne declaration or variable at a timeSpace, a new palette on the whole page
Keep text readableThe Color Picker's contrast ratio and its suggested fixThe contrast pass, on every change
Keep the changesLocal overrides, or Copy all CSS changesExport, or Site CSS with Pro
Where it runsChrome on a computerAny browser, phones too

Change one color with the Color Picker

As Chrome DevTools' Color Picker docs give the steps, select an element in the Elements panel, find the color or *-color declaration in the Styles pane, and click the square to the left of its value.

The Color Picker opens with shades, a hue slider, an opacity slider, an Eyedropper and a Copy to clipboard button. The change shows on the page at once as you move the sliders.

Its display value switcher changes the notation between hex, rgb(), hsl(), oklch() and more, and Shift-click on the square opens that list directly. This allows you to convert colors between modern CSS color formats without leaving the pane. To find an element's existing code before modifying it, you can follow the steps to find the hex color of a website.

Change a CSS variable instead

Many sites keep their colors in custom properties instead of hardcoded declarations. In Recolor's study, 82% of the most-linked home pages read a color through CSS variables. When styles use custom properties, updating the variable changes every element tied to that token across the entire stylesheet.

In the Styles pane a var() call links to the custom property's declaration, and hovering it shows its value, Chrome DevTools' CSS features reference says. Clicking that reference jumps directly to the rule where the custom property is set. Change the variable where it is declared, often on :root, and every element that reads it follows immediately.

The Color Picker's palette switcher also has a CSS Variables palette containing the custom properties on the page. You can read more about how design tokens structure page styles in the guide on how to recolor a website with CSS variables.

Keep the text readable

For a color value the Color Picker shows the contrast ratio against its background. When you select a text element, expanding the contrast line displays whether the text meets accessibility requirements, and you can click a suggested color to fix it immediately.

By default it suggests colors by APCA, and a setting switches it to WebAIM's guidelines. To test full color schemes beyond a single element, the contrast matrix grades every pair across a palette. You can review the importance of tone distribution in the guide on lightness when swapping a palette.

Keep your changes

Changes made in DevTools are temporary and are gone when the page reloads. If you refresh the window or navigate to another page, the browser reloads the original files from the web server. Right-click a declaration and choose Copy all CSS changes to copy them, and the Changes tab lists what you changed throughout your session.

Local overrides keep changes across page loads. Chrome DevTools' local overrides docs say that DevTools saves a copy of each changed file to a folder you choose and serves it on reload.

Try a whole palette instead

DevTools changes one value at a time, which makes testing full color schemes across an entire layout slow. Recolor loads the page by its address and gives every color its own variable, as explained in how it works. Each press of Space repaints all of them together, and its contrast pass keeps text at 4.5:1, or 3:1 for large text, so you can preview a palette on a real website instantly.

The export options give the palette as CSS variables and five more formats. If you want the full modified styling rules ready to drop into your project, the pricing plans include Pro features where Site CSS provides a stylesheet containing the complete repaint.

Common questions

Can I change a website's colors in Chrome DevTools?

Yes. Click the color square next to a value in the Styles pane and pick a new color in the Color Picker.

Do DevTools changes stay after a reload?

No. Copy them with Copy all CSS changes, or use local overrides, which serve your changed files on reload.

Can DevTools show a color in hex?

Yes. The Color Picker's display value switcher changes between hex, rgb(), hsl(), oklch() and more.

Can I change every color of a site at once in DevTools?

No. DevTools changes one declaration or variable at a time; Recolor repaints the whole page in a palette.

Does the Color Picker check contrast?

Yes. For a text color it shows the contrast ratio with its background and suggests colors that pass.

Does Recolor need Chrome?

No. It runs in any browser, on a computer or a phone.

Sources