Technical

Email dark mode colors inverted in Gmail and Outlook: fixes

Gmail, Outlook and iOS Mail rewrite email colors in dark mode, and you can't switch that off. Design for it instead: use transparent PNG logos with a light stroke, avoid pure black and white, pick mid-tone colors, set explicit colors on every element, and test in the real apps.

Sohail HussainSohail Hussain11 min read

Short answer

  • You can't switch dark mode off for your subscribers, so design for it: use transparent PNG logos with a thin light stroke or glow, off-black and off-white instead of pure values, and mid-tone button colors.
  • Add color-scheme meta tags and prefers-color-scheme styles as an extra layer for clients that honor them, then test in the real Gmail and Outlook apps.
  • Aim for readable, not identical. Fix any logo, button or text that disappears, and accept small tint differences.

Your email looks right in light mode. Then in dark mode a logo disappears, a button blends into the background, or a dark header turns white. This happens in Klaviyo, Mailchimp, Shopify Email and hand-coded HTML alike, because the email client does the recoloring, not the tool you build in.

Why the colors change

The inbox app decides what happens to your colors, and not every app does the same thing. Mailchimp's help center describes three schemes. With no visual change, the client doesn't alter your email colors. With partial inversion, the client detects light backgrounds and turns them dark, and adjusts text for contrast. With full inversion, the client inverts almost all colors, even those already designed as dark. Full inversion is why a dark header can turn light.

The same app can behave differently by platform. Mailchimp's list puts Gmail (Android), Outlook 365 (Mac), outlook.com and the Outlook Android and iOS apps under partial inversion. It puts Gmail (iOS), Outlook 2021, Windows Mail and Outlook 365 (Windows) under full inversion. Those are snapshots; vendors change behavior without notice, so treat any client chart as dated (as of November 2026).

Microsoft's own Q&A answer on this says there is no officially supported, bulletproof method to stop Outlook desktop or web from inverting colors. Classic Outlook for Windows also uses Word's rendering engine, which is a separate source of quirks.

Apple Mail is the odd one out. Apple's WWDC session explains that simple email messages auto darken, while rich marketing emails with remote images use the light color scheme by default. You opt in by declaring color-scheme support and then styling with the media query.

The causes behind what you see

What you seeLikely causeFix
Logo vanishesDark logo on transparent PNG, background flipped darkAdd a 1 to 2 px light stroke or glow
Logo sits in a white boxOpaque white background in the image fileRe-export with a transparent background
Dark header turns lightFull inversion (Outlook for Windows, Gmail iOS)Use a mid-tone header color; accept some shift
Button text unreadableText color inverted, background didn't (or the reverse)Solid-fill button, mid-tone fill, explicit colors
Banner text unreadableText baked into an image on a transparent or shifting backgroundLive text, or a solid background inside the image
Pure white sections go grayPure #FFFFFF is the easiest value to flipUse #FAFAFA or similar

Fix 1: Make logos and images survive any background

Do these in your design tool, before you upload anything.

  1. Export logos as transparent PNG. A JPG can't hold transparency, so a white-background logo becomes a white box on a dark canvas.
  2. For dark logos, bake a thin white or light-gray outline (about 1 to 2 px) or a soft glow into the PNG. Microsoft's guidance for Dynamics 365 says to use transparent backgrounds for logos and icons, or add a subtle glow or stroke to help them stand out in dark mode.
  3. If an image has its own background color, add padding around the focal point. This prevents awkward clashes with the email background.
  4. Avoid very bright image backgrounds. Omnisend's help center reports that Gmail and Outlook on mobile can invert images with very bright backgrounds such as white or yellow, even when they aren't transparent. Use a non-pure-white background or add padding or borders around key elements.
  5. Keep headlines and calls to action as live text, not text inside images.

Don't go image-only

Putting the whole email in images looks like a clean escape, but it hurts accessibility, adds file size, and shows nothing when images are blocked. Klaviyo's help center also notes that the HTML around an image still carries layout and background colors that the inbox can change.

Klaviyo's note on this is worth a read: image-only emails still rely on HTML for layout, spacing and surrounding backgrounds, and an inbox can change those colors in dark mode. See Klaviyo's dark mode best practices.

Fix 2: Choose colors that invert gently

Pure black and pure white are the values most likely to be flipped. Microsoft's guidance is to avoid both, because they often trigger unwanted color inversion; use dark gray (#1A1A1A) and off-white (#F5F5F5) instead. Mailchimp's page adds that #FFFFFF is very likely to be inverted.

  • Text: #1A1A1A on light sections.
  • Backgrounds: #FAFAFA or #F5F5F5 rather than #FFFFFF.
  • Buttons: a mid-saturation blue, green or similar reads on both light and dark canvases. Very pale or very dark fills are the ones that disappear.
  • Button style: Mailchimp advises solid-fill buttons with strong contrast, and avoiding border-only or ghost buttons.
  • Links: don't rely on color alone. Underline them so they stay recognizable if the color shifts.
  • Font weight: light text on dark backgrounds looks thinner, so use regular or heavier weights.

Also set colors explicitly. Give every container, cell and text block its own background-color (and bgcolor on table cells) plus its own text color. Anything left to inherit is something the client has to guess at.

Fix 3: Add dark-mode code for clients that honor it

This layer helps only where the client supports it. Mailchimp says the prefers-color-scheme query can target specific clients like Apple Mail and some versions of Outlook. Klaviyo's page also names the [data-ogsc] selector as a way to target dark mode users. Gmail doesn't reliably honor the media query, so the baseline rules above stay your main defense.

Put this in the head of custom HTML (most visual editors don't let you edit the head, so use an HTML block or a custom-coded template):

<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
<style>
  :root { color-scheme: light dark; supported-color-schemes: light dark; }
  @media (prefers-color-scheme: dark) {
    .body-bg   { background-color: #1f1f1f !important; }
    .text-main { color: #eeeeee !important; }
    .btn       { background-color: #4f8cff !important; color: #101010 !important; }
    .logo-light { display: none !important; }
    .logo-dark  { display: block !important; }
  }
</style>

The last two rules are the logo swap. Include two logo images, hide the dark-mode one by default with inline display:none, and reveal it inside the media query. Clients that ignore the query show the light logo only, which is why the stroke or glow from Fix 1 still matters.

Keep essentials inline

Some clients strip or rewrite style blocks. Keep your core colors as inline styles and use the style block only for dark overrides.

One more option from Microsoft's Q&A: for sections that must keep a solid color, a tiny repeating transparent PNG set as a background image can sometimes stop Outlook from inverting that background, because images are generally not inverted by Outlook's dark mode. The same answer says this works only "sometimes". Test it before you rely on it.

What each platform lets you do

Klaviyo, Mailchimp and Shopify's email tools all let you do the safe parts: upload a transparent PNG, set colors on blocks, and pick off-black and off-white. Dark-mode CSS needs an HTML block or custom-coded template. Check the vendor's current docs for where a style block is allowed and whether it survives sending, because editors change.

Mailchimp's page also says paid-plan users can use an inbox preview to simulate specific clients. Klaviyo says it does not have direct control over how dark mode is implemented on each device. That is true of every sending tool. Mailchimp's own summary is worth keeping in mind too: for some mobile clients there's no reliable way to target or override the behavior. You can read more in Mailchimp's dark mode design guide.

Test before you send

Previews approximate dark mode; they don't replicate every client version. Send yourself the email and open it on real devices:

  1. iOS Mail with dark appearance on.
  2. The Gmail app on iOS and on Android, with the system theme set to dark. Dark theme needs Android 10 or later, and iOS 13 or later on iPhone, per Google's Gmail help.
  3. Outlook for Windows and the Outlook mobile apps, in dark theme.
  4. Outlook.com in a browser with dark mode on.

Look for three things: a logo or icon that vanished, a button whose label is hard to read, and an image sitting in a bright box. Fix those and stop. Third-party tools such as darkmodechecker.org can render dark previews; treat them as a first pass, not proof.

For related checks, our free email accessibility checker catches contrast and alt-text problems that dark mode makes worse, and the responsive email tester covers layout across screen sizes. For structure, see HTML email basics.

Checklist before you send

  • Logos are transparent PNGs, with a light stroke or glow if dark.
  • No pure #000000 text or pure #FFFFFF backgrounds.
  • Every container and text block has explicit colors.
  • Buttons are solid-fill, mid-tone and legible when inverted.
  • Headlines and calls to action are live text, with alt text on images.
  • Links are underlined.
  • You've viewed a test send in Gmail iOS, Gmail Android and an Outlook client.

Where Mailneo fits

Mailneo helps with part of this. The editor has an HTML code mode, so you can set explicit colors and add your own dark-mode style block, and there's a sandboxed preview for checking layout. We haven't confirmed a dark-mode preview, so test on real devices. Mailneo can't change how Gmail or Outlook recolor a message, and no sending tool can.

If nothing works

If one client keeps breaking a specific element after the steps above, first check whether it's a known limitation (Outlook for Windows and Gmail on iOS apply full inversion). If you think your platform strips your dark styles or head tags, contact the platform's support. Include:

  • the client, app version and OS where it breaks
  • a light mode and a dark mode screenshot of the same email
  • the HTML of the failing block
  • what you already tried (meta tags, media query, image swap)
Subject: Dark mode styles not applied in sent email

Hi, my campaign "{campaign-name}" sent on {date} shows a logo that disappears
in Gmail for iOS dark mode. I added a prefers-color-scheme block and color-scheme
meta tags in a custom HTML block. Please confirm whether the style block and head
tags are kept when the email is sent. Screenshots (light and dark) and the HTML
of the block are attached. Test send ID: {id}.

Common questions

Can I force my email to stay in light mode?

Not reliably. Omnisend's help center says you can't prevent dark mode or force a white background across all clients, because the subscriber's client and device settings control it. Microsoft's Q&A answer says the same for Outlook.

Why does my email look different in Gmail on iPhone and on Android?

The same app applies different logic per platform. Mailchimp's list puts Gmail on iOS under full inversion and Gmail on Android under partial inversion, so test both.

Do I need a separate dark version of every email?

No. A single design that uses transparent logos, off-black and off-white, and mid-tone buttons covers most clients. Add dark-specific CSS only if your audience skews toward Apple Mail or other clients that honor it.

Is it worth chasing identical looks in every client?

No. Make sure the logo is visible, the button text is legible and the body copy has solid contrast in both views. If one client tints a background slightly differently, leave it.

designklaviyomailchimpshopify
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

Technical

Email Template Looks Broken in Outlook? Fixes for Word Rendering

Outlook for Windows renders HTML email with Microsoft Word's engine, which ignores much of modern CSS. Build layouts with tables, inline your CSS, wrap fixed widths in conditional ghost tables, set fonts and spacing explicitly, and test in real Outlook before each send. Most breakage traces to those four things.

Sohail Hussain|9 min read
Technical

Gmail clipped email 102KB limit: how to check and shrink HTML

Gmail cuts off an email's HTML at about 102KB and hides the rest behind a "[Message clipped] View entire message" link. Images don't count, only the HTML source. Send yourself the real campaign, check the size, then strip repeated inline styles, unused markup and extra links until you have a comfortable margin.

Sohail Hussain|9 min read
Technical

ActiveCampaign paste from Google Docs strips characters: fixes

When the ActiveCampaign editor strips curly quotes, dashes or accents pasted from Google Docs, paste as plain text (Ctrl+Shift+V or Cmd+Shift+V), then format inside the editor. If a character still disappears, write it as an HTML entity in an HTML block, and send a test to Gmail and Outlook before launch.

Sohail Hussain|9 min read
Technical

Acumbamail RSS Campaign Featured Image Not Showing: Fix

An RSS campaign shows no featured image when the feed itself does not carry it. Open your feed source and look for an enclosure, media:content or an img tag in each item. If it is missing, add the image to the feed with a plugin or code, then rerun the campaign as a test.

Sohail Hussain|8 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free