Turn RGB into HEX

A table driven logic to see the colors you work with
The colors below you find in the Coda Stylesheet when you open it using ‘inspect’
smiling reaction, you have not reacted
DB Colors
0
Search
Color name
source
RGB
Paul
Hex
Coda Hex
Visual
Color URL
1
red-gradient
--kr-red-gradient-rgb: 255, 146, 146;
255 146 146
#FF9292
#FF9292
#FF9292
2
red-light
--kr-red-light-rgb: 255, 220, 220;
255 220 220
#FFDCDC
#FFDCDC
#FFDCDC
3
red-chart
--kr-red-chart-rgb: 221, 72, 72;
221 72 72
#DD4848
#DD4848
#DD4848
4
red-medium
--kr-red-medium-rgb: 201, 22, 22;
201 22 22
#C91616
#C91616
#C91616
5
red-dark
--kr-red-dark-rgb: 169, 30, 30;
169 30 30
#A91E1E
#A91E1E
#A91E1E
6
orange-gradient
--kr-orange-gradient-rgb: 252, 152, 92;
252 152 92
#FC985C
#FC985C
#FC985C
7
orange-light
--kr-orange-light-rgb: 252, 227, 206;
252 227 206
#FCE3CE
#FCE3CE
#FCE3CE
8
orange-chart
--kr-orange-chart-rgb: 250, 135, 66;
250 135 66
#FA8742
#FA8742
#FA8742
9
orange-medium
--kr-orange-medium-rgb: 236, 101, 21;
236 101 21
#EC6515
#EC6515
#EC6515
10
orange-dark
--kr-orange-dark-rgb: 196, 91, 28;
196 91 28
#C45B1C
#C45B1C
#C45B1C
11
yellow-gradient
--kr-yellow-gradient-rgb: 255, 206, 70;
255 206 70
#FFCE46
#FFCE46
#FFCE46
12
yellow-light
--kr-yellow-light-rgb: 253, 243, 216;
253 243 216
#FDF3D8
#FDF3D8
#FDF3D8
13
yellow-chart
--kr-yellow-chart-rgb: 252, 188, 12;
252 188 12
#FCBC0C
#FCBC0C
#FCBC0C
14
yellow-medium
--kr-yellow-medium-rgb: 228, 167, 9;
228 167 9
#E4A709
#E4A709
#E4A709
15
yellow-dark
--kr-yellow-dark-rgb: 139, 108, 29;
139 108 29
#8B6C1D
#8B6C1D
#8B6C1D
16
green-gradient
--kr-green-gradient-rgb: 142, 203, 114;
142 203 114
#8ECB72
#8ECB72
#8ECB72
17
green-light
--kr-green-light-rgb: 226, 248, 232;
226 248 232
#E2F8E8
#E2F8E8
#E2F8E8
18
green-chart
--kr-green-chart-rgb: 66, 195, 102;
66 195 102
#42C366
#42C366
#42C366
19
green-medium
--kr-green-medium-rgb: 46, 150, 75;
46 150 75
#2E964B
#2E964B
#2E964B
20
green-dark
--kr-green-dark-rgb: 24, 123, 52;
24 123 52
#187B34
#187B34
#187B34
21
blue-gradient
--kr-blue-gradient-rgb: 107, 183, 255;
107 183 255
#6BB7FF
#6BB7FF
#6BB7FF
22
blue-light
--kr-blue-light-rgb: 221, 237, 253;
221 237 253
#DDEDFD
#DDEDFD
#DDEDFD
23
blue-chart
--kr-blue-chart-rgb: 82, 156, 226;
82 156 226
#529CE2
#529CE2
#529CE2
24
blue-medium
--kr-blue-medium-rgb: 47, 117, 215;
47 117 215
#2F75D7
#2F75D7
#2F75D7
25
blue-dark
--kr-blue-dark-rgb: 15, 88, 189;
15 88 189
#0F58BD
#0F58BD
#0F58BD
26
purple-gradient
--kr-purple-gradient-rgb: 210, 163, 225;
210 163 225
#D2A3E1
#D2A3E1
#D2A3E1
27
purple-light
--kr-purple-light-rgb: 237, 223, 246;
237 223 246
#EDDFF6
#EDDFF6
#EDDFF6
28
purple-chart
--kr-purple-chart-rgb: 167, 98, 217;
167 98 217
#A762D9
#A762D9
#A762D9
29
purple-medium
--kr-purple-medium-rgb: 133, 65, 181;
133 65 181
#8541B5
#8541B5
#8541B5
30
purple-dark
--kr-purple-dark-rgb: 110, 33, 186;
110 33 186
#6E21BA
#6E21BA
#6E21BA
31
pink-gradient
--kr-pink-gradient-rgb: 248, 140, 217;
248 140 217
#F88CD9
#F88CD9
#F88CD9
32
pink-light
--kr-pink-light-rgb: 248, 231, 243;
248 231 243
#F8E7F3
#F8E7F3
#F8E7F3
33
pink-chart
--kr-pink-chart-rgb: 220, 69, 177;
220 69 177
#DC45B1
#DC45B1
#DC45B1
34
pink-medium
--kr-pink-medium-rgb: 206, 66, 166;
206 66 166
#CE42A6
#CE42A6
#CE42A6
35
pink-dark
--kr-pink-dark-rgb: 161, 43, 134;
161 43 134
#A12B86
#A12B86
#A12B86
36
gray-gradient
--kr-gray-gradient-rgb: 190, 190, 190;
190 190 190
#BEBEBE
#BEBEBE
#BEBEBE
37
gray-light
--kr-gray-light-rgb: 240, 240, 240;
240 240 240
#F0F0F0
#F0F0F0
#F0F0F0
38
gray-chart
--kr-gray-chart-rgb: 142, 142, 142;
142 142 142
#8E8E8E
#8E8E8E
#8E8E8E
39
gray-medium
--kr-gray-medium-rgb: 102, 102, 102;
102 102 102
#666666
#666666
#666666
40
gray-dark
--kr-gray-dark-rgb: 102, 102, 102;
102 102 102
#666666
#666666
#666666
41
blue-medium
--kr-blue-medium-rgb: 47, 117, 215
47 117 215
#2F75D7
#2F75D7
#2F75D7
There are no rows in this table

Column Paul based on input
, simple and elegant:
Concatenate("#",
ToHexadecimal(thisRow.RGB.Split(",").Nth(1),2),
ToHexadecimal(thisRow.RGB.Split(",").Nth(2),2),
ToHexadecimal(thisRow.RGB.Split(",").Nth(3),2)
)

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.