You cannot paint a standard Chrome, Edge, Firefox or Safari tab any color you like. What you can do is control the strip of color browsers pick up for a site's tabs, and that comes from the website itself through a theme color setting, or from how the browser skins its window. On a personal site you control, you set the color with a meta tag; in your daily browser you change it by installing a theme or using a browser that exposes tab appearance. This guide covers the site-side and browser-side methods, plus the mobile tab-group colors you may actually be thinking of.
What You'll Need
- A browser with a theme or appearance setting (Chrome, Edge, Firefox, Brave and Vivaldi all have theme support of some kind)
- For the website method: access to your site's HTML, or a content management system where you can edit the theme header, and the ability to upload or edit the site
- A hex color code or a color picker for choosing the shade you want
- On Android Chrome: a Chromium-based mobile browser recent enough to support tab groups
Step-by-Step
- Decide which kind of tab color you want. There are three different things people call "tab color": the color the browser tints a site's tab on mobile (the theme color), the color of the whole browser window skin, and the color assigned to tab groups. Pick one; the steps differ for each.
- For a website you own, open the HTML head section. In a plain HTML site, find the
<head>block near the top of the file. In WordPress, you can add the same tag with a header-and-footer plugin or a child theme's functions file. Do not edit the parent theme directly if you want the change to survive updates. - Add a theme color meta tag. Insert
<meta name="theme-color" content="#1a73e8">, replacing the hex code with yours. To use different colors for light and dark mode, add a media attribute to each tag, for examplemedia="(prefers-color-scheme: dark)"on a second tag with a darker shade. - Save and publish the page. The tag only works once the page is live and served with the tag in the head section, not in the body.
- Test it on mobile. Open the page in Chrome on Android or Safari on iPhone. The browser should color the address bar area to match your tag. Theme color is mainly a mobile behavior; on desktop Chrome and Edge the main visible effect is on the toolbar area of installed web apps, so do not expect a desktop tab to recolor.
- Check the color in both modes. Switch the phone between light and dark system mode and reload. If you only supplied one tag, the same color applies in both modes, which can make white text unreadable in one of them.
- For a daily-use browser, install a theme instead. In Chrome, open Settings and look for the Appearance section, then choose Theme. In Firefox, open Add-ons and themes and browse the Themes category. Pick a theme whose accent or frame color you like. Labels and locations can differ slightly by version and platform.
- Use the color-tinting options some browsers expose. Firefox's own theme settings let you choose a color and whether it applies to the toolbar, and Edge has a similar appearance page with a color picker for the browser frame. Where a picker exists, select your color and confirm; if your browser has no picker, a third-party theme is the only route.
- On Android, try tab groups. In Chrome for Android, open the tab switcher, select a tab, and use the option to add it to a new tab group. Chrome assigns a color to the group automatically and lets you change it from the group's three-dot menu. The group color shows on the tab strip when tabs are grouped, which is what most people mean by colored tabs on a phone.
- Reload and confirm. Close and reopen the tab switcher to see the change applied, and restart the browser if a theme does not appear straight away.
Common Mistakes
The most frequent mistake is expecting a theme color tag to recolor desktop tabs. It does not: the tag tells the browser the page's brand color, and the browser decides where to use it, mostly on mobile and in installed app windows. If nothing changes on desktop, that is expected, not a bug.
Second, placing the meta tag outside the head section, or inside a content block that is rendered lower down the page, stops it from working. Some content editors strip meta tags when you paste them into a post body. Put it in the document head or in a plugin built for that purpose.
Third, choosing a color with no contrast. The theme color often sits behind white address-bar text on Android, so a pale yellow or light gray can make the URL unreadable. Test with actual text on screen, and supply a darker dark-mode variant.
Fourth, editing a parent theme or a cached copy. Browsers and content delivery networks cache pages aggressively, so a change that is live on the server can still show the old color locally. Clear the cache or load the page in a private window before assuming the tag is broken.
Tips
Match the theme color to your site's header background rather than to an accent button. The result is a seamless band from the browser chrome into the page, which looks deliberate; an unrelated color looks like a mistake.
Keep two hex codes ready, one for light and one for dark mode. A mid-blue that works on white often needs to be several shades deeper in dark mode to look right.
If you want visually separated groups for different projects, tab groups are more useful than window skins: name each group, give it a distinct color, and you can collapse it to hide a whole set of tabs at once.
Remember that themes apply to the whole browser, not one tab. If you want one site to stand out, the site-side theme color is the only mechanism that targets it individually.
Troubleshooting
Nothing changed after adding the tag. Confirm the tag is in the served source, not just in your editor: view the page source in the browser and search for theme-color. If it is missing, your template or plugin is not outputting it. If it is present, clear the browser cache and reload, and test on a phone rather than a desktop.
The browser still shows the old theme. Restart the browser, then remove and reapply the theme if one is installed. A theme that was removed from the store can stay applied until you change it.
The color looks wrong on one device. It may be night mode, a reading mode, or a system-wide tint altering the shade. Turn those off temporarily and compare. Differences between phone manufacturers' browsers are normal: the same tag can produce a slightly different result in Chrome versus a built-in vendor browser.
Tab groups are missing on mobile. Not every browser or platform offers them, and some versions hide the feature until you enable a setting or update the app. If the option is absent, update the browser from the official store; if it is still absent, that browser does not offer group coloring.
If that did not work, fall back to the browser's built-in appearance page and pick one of the provided colors rather than a custom one. A known-good theme confirms whether the problem is your tag, your cache, or the theme itself.
Frequently Asked Questions
Can I change the color of a single tab in Chrome on desktop?
Not directly. Desktop Chrome colors tabs through the installed theme, which applies to all tabs. The closest per-tab control is grouping tabs, where the group gets a color, and group colors are mainly a mobile and tab-strip feature.
Why did my theme color tag not change the desktop tab?
Theme color is used by the browser for mobile chrome and for installed web apps. Desktop tabs follow the browser theme, so the tag has little or no effect there.
Does this work in Safari on iPhone?
Safari on iPhone uses the theme color for its interface tint in some contexts, but its support is narrower than Chrome's. Test on the actual device rather than assuming the same result.
Will a theme color change my site's design?
No. The tag does not alter the page body at all; it is a hint to the browser about what color to use around the page.
Can I set a different color for dark mode?
Yes, by adding a second tag with the dark-mode media attribute. The browser picks the matching one based on the user's system setting.
How do I remove a color change?
Delete the meta tag or switch back to the browser's default theme. Then clear the cache so visitors' browsers and yours fetch the updated page.