# Is there a way to apply an specific color to a certain word?

**URL:** <https://forum.obsidian.md/t/is-there-a-way-to-apply-an-specific-color-to-a-certain-word/11806>\
**Category:** Help\
**Created:** [January 21, 2021, 10:09pm UTC](https://forum.obsidian.md/t/is-there-a-way-to-apply-an-specific-color-to-a-certain-word/11806 "2021-01-21T22:09:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![berzhot](https://forum.obsidian.md/user_avatar/forum.obsidian.md/berzhot/32/6441_2.png) [@berzhot](https://forum.obsidian.md/u/berzhot)\
**Post date:** [January 21, 2021, 10:09pm UTC](https://forum.obsidian.md/t/is-there-a-way-to-apply-an-specific-color-to-a-certain-word/11806/1 "2021-01-21T22:09:11Z")

</div>

I would like to know if there is any way to get certain words or terms to be displayed, each one, with a specific color (not just highlight ==). Could it be done with CSS?

---

<div class="post-metadata">

**Author:** ![EleanorKonik](https://forum.obsidian.md/user_avatar/forum.obsidian.md/eleanorkonik/32/6180_2.png) [@EleanorKonik](https://forum.obsidian.md/u/EleanorKonik)\
**Post date:** [January 22, 2021, 1:06am UTC](https://forum.obsidian.md/t/is-there-a-way-to-apply-an-specific-color-to-a-certain-word/11806/2 "2021-01-22T01:06:02Z")

</div>

check out this thread: [Use nested tag to manage 16 highlight colors,blod,italic](https://forum.obsidian.md/t/use-nested-tag-to-manage-16-highlight-colors-blod-italic/11050)

---

<div class="post-metadata">

**Author:** ![berzhot](https://forum.obsidian.md/user_avatar/forum.obsidian.md/berzhot/32/6441_2.png) [@berzhot](https://forum.obsidian.md/u/berzhot)\
**Post date:** [January 22, 2021, 8:21pm UTC](https://forum.obsidian.md/t/is-there-a-way-to-apply-an-specific-color-to-a-certain-word/11806/3 "2021-01-22T20:21:00Z")

</div>

Thanks for your quick response!  
I was looking for something that would allow that, every time I write a certain word, a specific format I have previously configured (like a text color) is applied to it automatically.

---

<div class="post-metadata">

**Author:** ![EleanorKonik](https://forum.obsidian.md/user_avatar/forum.obsidian.md/eleanorkonik/32/6180_2.png) [@EleanorKonik](https://forum.obsidian.md/u/EleanorKonik)\
**Post date:** [January 22, 2021, 11:12pm UTC](https://forum.obsidian.md/t/is-there-a-way-to-apply-an-specific-color-to-a-certain-word/11806/4 "2021-01-22T23:12:31Z")

</div>

the only way I know how to do that is with a text expander like espanso – which would basically relace WORD with _bluehighlightcsscode_WORD_endbluehighlighttag_, which is probably not what you want.

---

<div class="post-metadata">

**Author:** ![GreenChocho](https://forum.obsidian.md/user_avatar/forum.obsidian.md/greenchocho/32/4942_2.png) [@GreenChocho](https://forum.obsidian.md/u/GreenChocho)\
**Post date:** [January 23, 2021, 6:16am UTC](https://forum.obsidian.md/t/is-there-a-way-to-apply-an-specific-color-to-a-certain-word/11806/5 "2021-01-23T06:16:05Z")

</div>

See if this fit your needs:  
`<p style="color:red">YOUR TEXT HERE </p>`  
You can also change the ‘red’ word with hex code

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [April 1, 2023, 3:10pm UTC](https://forum.obsidian.md/t/is-there-a-way-to-apply-an-specific-color-to-a-certain-word/11806/6 "2023-04-01T15:10:13Z")

</div>

Closed on April 1, 2023, 3:10pm UTC


