# Asterisk Color in Form

**URL:** <https://community.hubspot.com/t/asterisk-color-in-form/103255>\
**Category:** Lead Capture Tools\
**Tags:** forms\
**Created:** [March 22, 2024, 7:14pm UTC](https://community.hubspot.com/t/asterisk-color-in-form/103255 "2024-03-22T19:14:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunabg](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@brunabg](https://community.hubspot.com/u/brunabg)\
**Post date:** [March 22, 2024, 7:14pm UTC](https://community.hubspot.com/t/asterisk-color-in-form/103255/1 "2024-03-22T19:14:46Z")

</div>

Hello HS Community,

How can I change the asterisk red color to another color in HubSpot Forms, please?

My website is blue and having that \* in red is not great for our branding.

Appreciate your help.

Thank you,

Bruna.

---

<div class="post-metadata">

**Author:** ![Ben\_M](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ben_m/32/2679_2.png) [@Ben\_M](https://community.hubspot.com/u/Ben_M)\
**Post date:** [March 22, 2024, 10:54pm UTC](https://community.hubspot.com/t/asterisk-color-in-form/103255/2 "2024-03-22T22:54:16Z")

</div>

Are you embedding the form as RAW HTML so you have control via the CSS on your site? If not, I would recommend using that option and then using CSS on your page to change the \* color.

---

<div class="post-metadata">

**Author:** ![brunabg](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@brunabg](https://community.hubspot.com/u/brunabg)\
**Post date:** [March 22, 2024, 11:47pm UTC](https://community.hubspot.com/t/asterisk-color-in-form/103255/3 "2024-03-22T23:47:08Z")

</div>

Hi,

Thank you for your message!  
How can I get the HTML of my form?  
I tried but I couldn’t find a way.

---

<div class="post-metadata">

**Author:** ![Ben\_M](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ben_m/32/2679_2.png) [@Ben\_M](https://community.hubspot.com/u/Ben_M)\
**Post date:** [March 23, 2024, 12:10am UTC](https://community.hubspot.com/t/asterisk-color-in-form/103255/4 "2024-03-23T00:10:54Z")

</div>

When you edit a form, select the style & preview tab. Then choose set as Raw HTML. When you embed your form, the form will no longer get styling from Hubspot and you will be able to set CSS via your webpage.

---

<div class="post-metadata">

**Author:** ![Charlottenlb](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@Charlottenlb](https://community.hubspot.com/u/Charlottenlb)\
**Post date:** [March 19, 2026, 9:36am UTC](https://community.hubspot.com/t/asterisk-color-in-form/103255/5 "2026-03-19T09:36:01Z")

</div>

Is there any other way around this? I want the styling from HubSpot but need to change the astrix colour…

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [March 19, 2026, 10:24am UTC](https://community.hubspot.com/t/asterisk-color-in-form/103255/6 "2026-03-19T10:24:24Z")

</div>

Hi @Charlottenlb and a big warm welcome from the HubSpot Community! 🧡  
Great question, thanks for asking!  
I’d like to share these resources that might help you:  
- [Understand the source of a page’s styling](https://knowledge.hubspot.com/design-manager/understand-the-source-of-a-page-s-styling)  
- [Create, edit, and attach CSS files to style your site](https://knowledge.hubspot.com/design-manager/create-edit-and-attach-css-files-to-style-your-site)  
Now, let’s consult our Top Experts: Hi [@Ben\_M](https://community.hubspot.com/t5/user/viewprofilepage/user-id/87451), @Anton and [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) do you have other suggestions to help @Charlottenlb, please?  
Thanks so much and have a wonderful day! 🌞  
Bérangère

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [March 20, 2026, 9:06am UTC](https://community.hubspot.com/t/asterisk-color-in-form/103255/7 "2026-03-20T09:06:15Z")

</div>

Hey @brunabg,

if you’re using a child-theme of a default or marketplace theme, or even a custom theme, you should be able to modify the CSS files.

In this case, open the theme in the Design-Manager, look for something like the theme-overrides.css and put following code at the bottom of it

```lia-code-sample
{# custom required color #}
form .hs-form-required{
 color: #ff0000; {# replace this HEX code with your desired one #}
}

```

If you’re using a default or marketplace theme without a child-theme, go to [Content/Pages](https://app.hubspot.com/l/settings/website/pages/all-domains/page-templates) in the HubSpot settings and put it into the Site Header HTML area.

If this shouldn’t work right away, try the sledgehammer method like this

```lia-code-sample
{# custom required color #}
form .hs-form-required{
 color: #ff0000 !important; {# replace this HEX code with your desired one #}
}

```

best,

Anton

---

<div class="post-metadata">

**Author:** ![Charlottenlb](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@Charlottenlb](https://community.hubspot.com/u/Charlottenlb)\
**Post date:** [March 23, 2026, 12:04pm UTC](https://community.hubspot.com/t/asterisk-color-in-form/103255/8 "2026-03-23T12:04:40Z")

</div>

Thanks Bérangère. I tried @Anton’s instructions but it didn’t work… see below screenshots. Thanks!

 ![Charlottenlb_0-1774267463330.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/e/2ebb0d2b18099d8d7c44a3e5b42c8aa3a364d867.png)

 ![Charlottenlb_1-1774267473756.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/1/211b1094b00b763b7d21f04fcb553fd80de4d9e0.png)

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [March 31, 2026, 4:54pm UTC](https://community.hubspot.com/t/asterisk-color-in-form/103255/9 "2026-03-31T16:54:52Z")

</div>

Hi @Charlottenlb and thanks for getting back to us!  
Hi @Anton, @SteveHTM and [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811) do you have other suggestions to help @Charlottenlb, please?  
Have a lovely day and thanks so much for your help!  
Bérangère

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [March 31, 2026, 7:10pm UTC](https://community.hubspot.com/t/asterisk-color-in-form/103255/10 "2026-03-31T19:10:28Z")

</div>

Hey @Charlottenlb,

thanks for the screenshots.

The code doesn’t work as there’s a few mistakes in the code.

Try this one:

```lia-code-sample
{# custom required color #}
form .hs-form-required{
 color: #75cccd; {# replace this HEX code with your desired one #}
}

```

Explenation:

`{# Lorem ipsum #}`

are HubL comments. If they’re not written in this specific way, HubSpot will interpret everything as a comment and not apply the code.

Example of a not working comment:

Spoiler

`{#this is a wrong #comment}.this-wont-work{color:#ff0000}{# still a comment #}`

HubSpot will render: nothing → code won’t be applied

If you want to have a fail-safe way, just remove all the clients and just use:

```lia-code-sample
form .hs-form-required{
 color: #75cccd;
}

```

best,

Anton
