Skip to content
Dynamic Conditional Formatting
Share
Explore
Defining Colors

icon picker
HTML Colors

You don't have to use Hex Values for conditional formatting, you can use the standard set of HTML Named Colors if you'd prefer.
Coda’s gradient formula supports HTML Colors for color stops. You don’t have to use Hex Values, the standard list of 148 different color names all seem to work just fine. If you’re not familiar with HTML Named Colors, they can be really garish. Use the table on this page to find suitable colors rather than using “Blue” or “Red”.

Here’s an example

_GRADIENT(
thisRow.[Row ID],
1, "Blue",
2, "Red",
3, "Yellow"
)

What are HTML Named Colors?

Taken from .
W3C color names are names assigned by the W3C to specify colors in web pages or files. These names can be used instead of their corresponding hexadecimal value to refer to that color in an HTML file or CSS stylesheet. These names are supported by all modern web browsers and used because it's easier to remember color names than color codes.

Important Caveat!

HTML Named Colors Don’t Transition
If you define colors using HTML Named Colors, they don’t seem to transition when the row’s number column is between two color stops. In , we’ve used HTML Named Colors instead of Hex Values, and rows seem to just “Round Down” to the color stop lower than their Position column.

Generator

Let’s generate the Conditional Formatting formula for you:
Copy the below HTML Colors table across to your doc.
In your target table, add a new LOOKUP column and choose Custom Hex Values as the table to look up to.
Name your new column Color LU.
Click the Generate Formula button below
Open your target table’s Options panel, click Conditional Format
Click Add Rule and select the Formula option. Paste the code in there. You can see a video guide at the bottom of

* Note if you make any changes to the HTML Colors table, you’ll need to regenerate the Conditional Format formula, and update it on the destination table.
1
Clear
Generate Formula
No results from filter

HTML Colors
0
Name
Hex Value
Preview
Row ID
1
Black
#000000
1
2
Navy
#000080
2
3
DarkBlue
#00008b
3
4
MediumBlue
#0000cd
4
5
Blue
#0000ff
5
6
DarkGreen
#006400
6
7
Green
#008000
7
8
Teal
#008080
8
9
DarkCyan
#008b8b
9
10
DeepSkyBlue
#00bfff
10
11
DarkTurquoise
#00ced1
11
12
MediumSpringGreen
#00fa9a
12
13
Lime
#00ff00
13
14
SpringGreen
#00ff7f
14
15
Aqua
#00ffff
15
16
Cyan
#00ffff
16
17
MidnightBlue
#191970
17
18
DodgerBlue
#1e90ff
18
19
LightSeaGreen
#20b2aa
19
20
ForestGreen
#228b22
20
21
SeaGreen
#2e8b57
21
22
DarkSlateGray
#2f4f4f
22
23
DarkSlateGrey
#2f4f4f
23
24
LimeGreen
#32cd32
24
25
MediumSeaGreen
#3cb371
25
26
Turquoise
#40e0d0
26
27
RoyalBlue
#4169e1
27
28
SteelBlue
#4682b4
28
29
DarkSlateBlue
#483d8b
29
30
MediumTurquoise
#48d1cc
30
31
Indigo
#4b0082
31
32
DarkOliveGreen
#556b2f
32
33
CadetBlue
#5f9ea0
33
34
CornflowerBlue
#6495ed
34
35
RebeccaPurple
#663399
35
36
MediumAquaMarine
#66cdaa
36
37
DimGray
#696969
37
38
DimGrey
#696969
38
39
SlateBlue
#6a5acd
39
40
OliveDrab
#6b8e23
40
41
SlateGray
#708090
41
42
SlateGrey
#708090
42
43
LightSlateGray
#778899
43
44
LightSlateGrey
#778899
44
45
MediumSlateBlue
#7b68ee
45
46
LawnGreen
#7cfc00
46
47
Chartreuse
#7fff00
47
48
Aquamarine
#7fffd4
48
49
Maroon
#800000
49
50
Purple
#800080
50
51
Olive
#808000
51
52
Gray
#808080
52
53
Grey
#808080
53
54
SkyBlue
#87ceeb
54
55
LightSkyBlue
#87cefa
55
56
BlueViolet
#8a2be2
56
57
DarkRed
#8b0000
57
58
DarkMagenta
#8b008b
58
59
SaddleBrown
#8b4513
59
60
DarkSeaGreen
#8fbc8f
60
61
LightGreen
#90ee90
61
62
MediumPurple
#9370db
62
63
DarkViolet
#9400d3
63
64
PaleGreen
#98fb98
64
65
DarkOrchid
#9932cc
65
66
YellowGreen
#9acd32
66
67
Sienna
#a0522d
67
68
Brown
#a52a2a
68
69
DarkGray
#a9a9a9
69
70
DarkGrey
#a9a9a9
70
71
LightBlue
#add8e6
71
72
GreenYellow
#adff2f
72
73
PaleTurquoise
#afeeee
73
74
LightSteelBlue
#b0c4de
74
75
PowderBlue
#b0e0e6
75
76
FireBrick
#b22222
76
77
DarkGoldenRod
#b8860b
77
78
MediumOrchid
#ba55d3
78
79
RosyBrown
#bc8f8f
79
80
DarkKhaki
#bdb76b
80
81
Silver
#c0c0c0
81
82
MediumVioletRed
#c71585
82
83
IndianRed
#cd5c5c
83
84
Peru
#cd853f
84
85
Chocolate
#d2691e
85
86
Tan
#d2b48c
86
87
LightGray
#d3d3d3
87
88
LightGrey
#d3d3d3
88
89
Thistle
#d8bfd8
89
90
Orchid
#da70d6
90
91
GoldenRod
#daa520
91
92
PaleVioletRed
#db7093
92
93
Crimson
#dc143c
93
94
Gainsboro
#dcdcdc
94
95
Plum
#dda0dd
95
96
BurlyWood
#deb887
96
97
LightCyan
#e0ffff
97
98
Lavender
#e6e6fa
98
99
DarkSalmon
#e9967a
99
100
Violet
#ee82ee
100
101
PaleGoldenRod
#eee8aa
101
102
LightCoral
#f08080
102
103
Khaki
#f0e68c
103
104
AliceBlue
#f0f8ff
104
105
HoneyDew
#f0fff0
105
106
Azure
#f0ffff
106
107
SandyBrown
#f4a460
107
108
Wheat
#f5deb3
108
109
Beige
#f5f5dc
109
110
WhiteSmoke
#f5f5f5
110
111
MintCream
#f5fffa
111
112
GhostWhite
#f8f8ff
112
113
Salmon
#fa8072
113
114
AntiqueWhite
#faebd7
114
115
Linen
#faf0e6
115
116
LightGoldenRodYellow
#fafad2
116
117
OldLace
#fdf5e6
117
118
Red
#ff0000
118
119
Fuchsia
#ff00ff
119
120
Magenta
#ff00ff
120
121
DeepPink
#ff1493
121
122
OrangeRed
#ff4500
122
123
Tomato
#ff6347
123
124
HotPink
#ff69b4
124
125
Coral
#ff7f50
125
126
DarkOrange
#ff8c00
126
127
LightSalmon
#ffa07a
127
128
Orange
#ffa500
128
129
LightPink
#ffb6c1
129
130
Pink
#ffc0cb
130
131
Gold
#ffd700
131
132
PeachPuff
#ffdab9
132
133
NavajoWhite
#ffdead
133
134
Moccasin
#ffe4b5
134
135
Bisque
#ffe4c4
135
136
MistyRose
#ffe4e1
136
137
BlanchedAlmond
#ffebcd
137
138
PapayaWhip
#ffefd5
138
139
LavenderBlush
#fff0f5
139
140
SeaShell
#fff5ee
140
141
Cornsilk
#fff8dc
141
142
LemonChiffon
#fffacd
142
143
FloralWhite
#fffaf0
143
144
Snow
#fffafa
144
145
Yellow
#ffff00
145
146
LightYellow
#ffffe0
146
147
Ivory
#fffff0
147
148
White
#ffffff
148
There are no rows in this table

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.