# Color function in document

**URL:** <https://connect.superhuman.com/t/color-function-in-document/1901>\
**Category:** Product Feedback\
**Created:** [August 16, 2018, 1:10pm UTC](https://connect.superhuman.com/t/color-function-in-document/1901 "2018-08-16T13:10:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shannon\_Massingill](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/shannon_massingill/32/6846_2.png) [@Shannon\_Massingill](https://connect.superhuman.com/u/Shannon_Massingill)\
**Post date:** [August 16, 2018, 1:10pm UTC](https://connect.superhuman.com/t/color-function-in-document/1901/1 "2018-08-16T13:10:04Z")

</div>

Change the color using function. Like, turn things red when they are late.

---

<div class="post-metadata">

**Author:** ![maria](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/maria/32/6602_2.png) [@maria](https://connect.superhuman.com/u/maria)\
**Post date:** [August 17, 2018, 9:08pm UTC](https://connect.superhuman.com/t/color-function-in-document/1901/2 "2018-08-17T21:08:25Z")

</div>

Have you tried taking a look at Conditional Formatting? We use this to change colors based on due dates here at Coda. This is a quick [article](https://help.coda.io/organizing-your-doc/formatting-options-for-your-doc/table-conditional-formatting) that might help. Keep us posted!

---

<div class="post-metadata">

**Author:** ![David\_Fields](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@David\_Fields](https://connect.superhuman.com/u/David_Fields)\
**Post date:** [August 18, 2018, 4:15am UTC](https://connect.superhuman.com/t/color-function-in-document/1901/3 "2018-08-18T04:15:18Z")

</div>

I believe he was referring to a function being able to do that within the doc itself, i.e., not inside of a table where conditional formatting already exists like you suggested. But I may be wrong?

---

<div class="post-metadata">

**Author:** ![Shannon\_Massingill](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/shannon_massingill/32/6846_2.png) [@Shannon\_Massingill](https://connect.superhuman.com/u/Shannon_Massingill)\
**Post date:** [August 18, 2018, 4:57pm UTC](https://connect.superhuman.com/t/color-function-in-document/1901/4 "2018-08-18T16:57:26Z")

</div>

David, you are correct I was looking to format outside of tables.

---

<div class="post-metadata">

**Author:** ![maria](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/maria/32/6602_2.png) [@maria](https://connect.superhuman.com/u/maria)\
**Post date:** [August 20, 2018, 4:23pm UTC](https://connect.superhuman.com/t/color-function-in-document/1901/5 "2018-08-20T16:23:54Z")

</div>

Got it! My apologies for misunderstanding. While this doesn’t formally exist, what I might do is use formulas in the document to pull from your tables based on due date so you could have a running list of things that are in and out of date.

---

<div class="post-metadata">

**Author:** ![Christiaan\_Huizer](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/christiaan_huizer/32/28269_2.png) [@Christiaan\_Huizer](https://connect.superhuman.com/u/Christiaan_Huizer)\
**Post date:** [February 14, 2020, 1:17pm UTC](https://connect.superhuman.com/t/color-function-in-document/1901/6 "2020-02-14T13:17:07Z")

</div>

I am afraid that the issue is a bit more profound than I first assumed. It is one thing you cannot have colors directly in your doc like #4A4A4A (like you have in slack for example) but it is something else that when I use conditional formating to show the color related to the hex, it is not possible to use the hex code at all…

What remains is a screenshot to be put in the section showing the right colors and the hex code. At least for the moment I hesitate to use coda to communicate on web site related issues.

I wonder if this is something that is important enough for coda to solve.

---

<div class="post-metadata">

**Author:** ![Paul\_Danyliuk](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/paul_danyliuk/32/27228_2.png) [@Paul\_Danyliuk](https://connect.superhuman.com/u/Paul_Danyliuk)\
**Post date:** [February 14, 2020, 8:22pm UTC](https://connect.superhuman.com/t/color-function-in-document/1901/7 "2020-02-14T20:22:10Z")

</div>

It’s possible with hidden formulas. Check this out:

> [@A somewhat of a documentation of hidden formulas \[Added mechanics of nested buttons\]](https://connect.superhuman.com/t/a-somewhat-of-a-documentation-of-hidden-formulas-added-mechanics-of-nested-buttons/9831/2):
>
> Diferent types of color arguments [[Back to index]](https://connect.superhuman.com/t/a-somewhat-of-a-documentation-of-hidden-formulas-corrected-deep-modifications-of-control-objects/9831/1) Different hidden formulas use different format for specifying colors. Here is a list of all different color argument types I found so far: Hex The most straightforward of them all. Just a hex color in the #rrggbb(aa) format. This is used in the \_Color() formula. Color palette This is actually a set of color and it can be any of the following values (case-sensitive): Red Orange Yellow Green Blue Purple Pink Gray Providing an incorrect …
