How-To

HubSpot error: The token "Style_setting.background_colour" doesn't exist

HubSpot blocks sending with the error The token "Style_setting.background_colour" doesn't exist when an email references a style setting that no template defines. Open the underlying template, set a valid background color in its Design or Styles settings, and re-paste any copied content with match style.

Sohail HussainSohail Hussain8 min read

Short answer

  • The email points at a style setting named background_colour that its template or module does not define, so HubSpot refuses to send it.
  • Open the template the email is built on, set a valid background color in its styles (or fix the field name in the code), save, then reopen the email and send.
  • If the error began right after you pasted text, delete the pasted block and paste again with paste and match style.

You hit Send or Schedule in HubSpot and get this instead:

The token, "Style_setting.background_colour" Doesn't exist.

I can't see inside your portal, and HubSpot support is the final authority on edge cases. What follows is the likely logic of the error plus the fixes people on HubSpot's community forum report. This is a content problem inside one email, not a deliverability problem, so leave SPF, DKIM and DNS alone.

Why it happens

HubSpot templates and modules can expose style fields, and the markup refers to them as tokens, such as {{ style_setting.background_colour }}. When the email renders, every token has to resolve to something. If one points at a field that no longer exists, rendering fails and the send is blocked.

The causes, most common first:

  1. A template or module was edited, cloned or replaced. The field that defined the style was renamed or deleted, but the email still references it.
  2. A button or section carries a stale reference. People often see the error right after editing button styles, which suggests the element kept a reference to a field from a different template.
  3. Pasted content brought hidden rich-text styling. Text copied from Word, Google Docs, another email or a web page can carry inline styles the editor mishandles. Reports link this to the error, though HubSpot has not documented the exact mechanism, so treat it as a likely trigger rather than a confirmed one.

One hint is in the spelling. background_colour is British, while HubSpot's own fields are normally written in US English. So the token was probably defined by a custom, agency-built or marketplace template, or by a module someone edited. Check that first.

What you did before the errorMost likely causeStart with
Edited or replaced a template or moduleField renamed or deletedFix 1
Changed a button or section styleElement holds a stale referenceFix 2
Pasted from Word, Docs or another emailHidden rich-text stylingFix 3
Nothing; the email is a cloneInherited broken referenceFix 2, then Fix 4

Step-by-step fixes

Fix 1: set the background color in the template

Try this first. It works when the template's field was deleted or left empty.

  1. Open the email in the editor and note which template it uses.
  2. Open that template in HubSpot's design tools. Search for "Design Manager" in HubSpot, or use the template editor if it is a drag and drop template.
  3. Find the template's Design or Styles settings and look for a background color field. If it is empty or invalid, enter a valid value such as #ffffff.
  4. If the field is missing entirely, search the template code and its modules for the string background_colour. Either define a field with exactly that name, or change the reference to a field that exists.
  5. Save or publish the template.
  6. Return to the email, refresh the editor, and try sending or scheduling again.

If none of your templates contains that field name, go to Fix 2.

Edit with care

If other live emails use the same template, changing or deleting its fields can break them too. Clone the template and test on a copy before editing the original.

Fix 2: find and reset the element that carries the token

When the template looks fine, the bad reference may sit in one module or button.

  1. In the email editor, click each button, section and column in turn and open its styling options.
  2. Look for a background color that is blank or set to something odd. Set an explicit color, or reset it to the default.
  3. If a button is the suspect, delete it and add a fresh one.
  4. Save, then try the send again.

To isolate the culprit, duplicate the email, delete half the content and test. Repeat until the error disappears; the last thing you removed is the cause. Re-add that piece cleanly.

Fix 3: remove hidden styles from pasted content

If the error appeared right after a paste, start here.

  1. Delete the pasted block.
  2. Paste again with paste and match style: Ctrl+Shift+V on Windows and Linux, Cmd+Shift+V on Mac. It keeps the text and drops the source formatting.
  3. Re-apply links and bold inside HubSpot.
  4. For a stubborn block, paste into a plain-text editor first, copy from there, then paste into HubSpot.

Fix 4: roll back or rebuild on a clean template

If nothing above works, restore an earlier version of the email if your portal offers version history. Otherwise, build a new email on a stock HubSpot template, paste your content with paste and match style, and rebuild only the styling you need. It is slower, but it sidesteps whatever broke in the old template.

Test before you schedule

After any template or style edit, send a test email to yourself before scheduling to your list. The token error shows up at send time, so a test catches it early.

Checklist before you try again

  • The email's template has a valid background color set (for example #ffffff).
  • No code in the template or its modules references background_colour without defining it.
  • Every button and section has an explicit background color or the default.
  • Pasted content was inserted with paste and match style.
  • You saved the template, refreshed the email editor and sent a test.

How to prevent it

  • Don't rename or delete style fields in a template that live emails use. Add the new field first, update the emails, then retire the old one.
  • Paste with paste and match style by default.
  • Keep one spelling convention for custom field names. A mix of color and colour makes this kind of mismatch easy.
  • Keep a clean, known-good template to clone from when a design gets messy.

If nothing works

Contact HubSpot support from inside your portal. If the template came from a marketplace or an agency, the author may need to fix it, so name the provider in your ticket. Include:

  • the exact error text, including the token name
  • the email's name and ID (visible in the editor URL)
  • the template it is built on, and whether it is HubSpot-provided, custom or from a marketplace
  • what you changed just before it began, with approximate timestamps
  • a screenshot of the error and the steps you already tried
Subject: Email won't send: The token "Style_setting.background_colour" Doesn't exist

Hi HubSpot support,

I can't send or schedule a marketing email. The editor shows:
The token, "Style_setting.background_colour" Doesn't exist.

Email name and ID: {email name}, {ID from URL}
Template: {template name} ({HubSpot-provided / custom / marketplace})
Started: {date and time, timezone}, right after I {edited a button / pasted content / changed the template}

Already tried: reset the template background color, rebuilt the button, re-pasted with paste and match style, cloned the email.

Screenshot attached. Can you check whether the template references a style field that is not defined?

Thanks,
{your name}

Common questions

Does this error affect my deliverability?

No. It stops the email from rendering, so nothing is sent at all. Your sending domain, authentication records and reputation are not involved.

Why does it say colour and not color?

HubSpot's own fields normally use US spelling, so a British spelling suggests a custom, agency or marketplace template, or an edited module. That is a good place to start looking.

Can I just delete the email and start over?

You can, but if you rebuild on the same broken template the error will return. Rebuild on a clean template or fix the template first.

I never touched the template. Why now?

Someone else on your team, an agency or a template update may have changed it, and cloned emails inherit the broken reference. Check the template's edit history if your portal shows one.

strategyhubspoterror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

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

Ready to supercharge your email marketing?

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

Get Started Free