User Agents

Web browsers and everyday web tech, explained

Chrome Autofill Background Color Change in Version 72

· 5 min read · Browsers

In this article
  1. Why Did Chrome Change the Autofill Background?
  2. How the Autofill Background Works Technically
  3. How to Override the Autofill Background Color
  4. Common Problems with Autofill Styling
  5. Comparison with Other Browsers
  6. How to Choose a Custom Autofill Color
  7. Frequently Asked Questions

Yes, Google Chrome version 72 (released January 2019) changed the default background color of autofilled input fields from a pale yellow to a very light blue or gray, depending on your operating system and browser theme. This change was part of a broader visual refresh that also altered the highlight color for selected text and form controls. The exact color is not a single fixed value; it is derived from the browser's native theme, so on Windows it typically appears as a light blue (#E8F0FE), while on macOS it may be a slightly different shade.

Why Did Chrome Change the Autofill Background?

Before version 72, Chrome used a pale yellow background (#FFFFCC or similar) for autofilled inputs, a convention inherited from older browsers. The yellow was chosen to signal that a field had been automatically filled, but it often clashed with modern website designs and made forms look dated. In version 72, Google shifted to a more neutral, theme-aware color to align with its Material Design language and to reduce visual noise. The new color is intentionally subtle so that it does not distract users, while still being distinguishable from a user-typed value.

How the Autofill Background Works Technically

Chrome applies the autofill background using the :-webkit-autofill pseudo-class, which is a non-standard CSS selector that web developers can use to style autofilled inputs. The background color is set by the browser's internal stylesheet, and it is not directly controlled by the user via settings. However, the actual color value is not hardcoded in every build; it is drawn from the browser's native theme resources. This means that if you use a custom Chrome theme, the autofill color may change to match that theme's accent color. The change in version 72 primarily affected the default theme, but custom themes always had the ability to override it.

How to Override the Autofill Background Color

If you are a web developer or a user who wants to change the autofill background on a specific website, you can use CSS to override the browser's default. The standard approach is to target the :-webkit-autofill pseudo-class and set a custom background and text color. Here is an example:

  1. Add a CSS rule like input:-webkit-autofill { background-color: #ffffff !important; } to your stylesheet.
  2. Also set -webkit-box-shadow: 0 0 0 1000px #ffffff inset; to fully cover the background, because some browsers apply a gradient that the background-color alone does not override.
  3. Set the text color with -webkit-text-fill-color: #000000 !important; to ensure the typed text remains readable.

Note that you may need to use !important to beat the browser's default, and you should test across different browsers because Firefox and Safari have their own autofill styling rules.

Common Problems with Autofill Styling

One frequent issue is that the autofill background does not change even after applying the CSS above. This happens because Chrome sometimes applies a transition delay to the autofill background, causing it to appear after a few hundred milliseconds. To fix this, you can add a CSS transition with a long duration, like transition: background-color 5000s ease-in-out 0s;, which effectively freezes the background at your desired color. Another problem is that the autofill text color may be unreadable if you only change the background; you must also set -webkit-text-fill-color to a contrasting color. Users on macOS have reported that the autofill background appears as a light gray rather than blue, which is due to the system's accent color settings.

Comparison with Other Browsers

Chrome's autofill color change in version 72 made it more similar to Safari and Firefox, which had already moved away from yellow. Safari uses a light blue (#E8F0FE) on macOS, while Firefox uses a light blue on Windows and a neutral gray on Linux. Internet Explorer and Edge (legacy) used a yellow background, but that was retired with Edge's switch to Chromium in 2020. The key difference is that Chrome's color is now theme-aware, meaning it can change if the user applies a custom theme, whereas Firefox's is fixed unless overridden by CSS.

How to Choose a Custom Autofill Color

If you are a developer, you should choose an autofill background that contrasts with your form's normal background but does not clash with your design. A common practice is to use a very light tint of your brand color, or a neutral light gray like #F0F0F0. Always test with both light and dark themes, because a color that works on a white background may be invisible on a dark one. For dark mode, you might want to use a darker shade, but note that Chrome's default autofill color in dark mode is a dark gray, which can be overridden similarly. Users cannot change the autofill color globally through Chrome settings; it is controlled by the website's CSS or the browser theme.

Frequently Asked Questions

Can I disable the autofill background color entirely?

No, you cannot disable it through Chrome settings. The autofill background is a browser-level feature to indicate that a field was automatically filled. However, as a developer, you can override it with CSS to make it match your design, effectively making it invisible. As a user, you can use a custom theme that may change the color, but you cannot turn it off completely.

Why does the autofill background appear yellow on some websites?

If you see a yellow background on a website, it is likely because the website's CSS explicitly sets a yellow background for autofilled fields, or the site is using an older browser that still has the yellow default. In Chrome 72 and later, the default is not yellow, so a yellow appearance means the site has its own styling.

Does the autofill background change affect password managers?

No, the background change is purely visual. Password managers that fill credentials into forms use the same autofill mechanism, so the background will still appear. The change does not affect the functionality of autofill or password managers.

How do I make the autofill background match my website's theme?

Use the CSS override method described above. Set the background-color to your desired color, add the box-shadow inset trick to ensure full coverage, and set the text-fill-color to a readable contrast. Test in both light and dark modes if your site supports them.

Is the autofill background color the same on all operating systems?

No, the exact color can vary by operating system and Chrome theme. On Windows, it is typically a light blue; on macOS, it may be a lighter blue or gray; on Linux, it often appears as a light gray. The variation is due to the browser using native theme colors.