col

List of commands available Convert hex colour to RGB Convert RGB colour to HEX Convert HEX colour to Decimal Add RGB values to Hex colour Subtract RGB values from Hex colour Generate 5 Random colours

Sharedunrated

Content

118 lines
{=(comment):You can set below options as per your need}
{=(tagname):col}
{=(comment):Prefix you use}
{=(prefix):!}
{=(comment):hex to rgb option name}
{=(htr):rgb}
{=(comment):rgb to hex option name}
{=(hex):hex}
{=(comment):hex to decimal option name}
{=(dec):dec}
{=(comment):Add option name}
{=(add):add}
{=(comment):Subtract option name}
{=(sub):sub}
{=(comment):Random option name}
{=(ran):ran}


{=(largs):{lower:{replace(#,):{args}}}}
{=(option):{largs(1)}}
{=(red):{largs(3)}}
{=(green):{largs(4)}}
{=(blue):{largs(5)}}
{=(cs):{replace(, ):{largs(2)}}}
{=(cn):{replace(f,15):{replace(e,14):{replace(d,13):{replace(c,12):{replace(b,11):{replace(a,10):{cs}}}}}}}}
{=(hl):0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f}
{=(embedc):{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}}
{embed(color):#{embedc}}


{break({option}=={htr}):
{=(desr):Your RGB value : `{m:trunc({cn(-6)}*16 + {cn(-5)})}, {m:trunc({cn(-4)}*16 + {cn(-3)})}, {m:trunc({cn(-2)}*16 + {cn(-1)})}`
for more type : `{prefix}{tagname} help`}
{=(mainurlr):https://dummyimage.com/100x100/{cs(-6)}{cs(-5)}{cs(-4)}{cs(-3)}{cs(-2)}{cs(-1)} }
}
	
{break({option}=={hex}):
{=(hexnum):{m:trunc({largs(2)}/16)} {m:trunc({largs(2)} - trunc({largs(2)}/16)*16)} {m:trunc({largs(3)}/16)} {m:trunc({largs(3)} - trunc({largs(3)}/16)*16)} {m:trunc({largs(4)}/16)} {m:trunc({largs(4)} - trunc({largs(4)}/16)*16)} }
{=(rth):{replace( ,):{replace(15,f):{replace(14,e):{replace(13,d):{replace(12,c):{replace(11,b):{replace(10,a):{hexnum}}}}}}}}}
{=(desh):Your hex code : `#{rth}`
for more type : `{prefix}{tagname} help`}
{=(mainurlh):https://dummyimage.com/100x100/{rth}}
}
	
{break({option}=={add}):
{=(titleurladd):https://dummyimage.com/100x100/{largs(2)}}
{=(nr):{m:trunc({cn(-6)}*16 + {cn(-5)}) + {red}}}
{=(ng):{m:trunc({cn(-4)}*16 + {cn(-3)}) + {green}}}
{=(nb):{m:trunc({cn(-2)}*16 + {cn(-1)}) + {blue}}}
{=(addnum):{m:trunc({nr}/16)} {m:trunc({nr} - trunc({nr}/16)*16)} {m:trunc({ng}/16)} {m:trunc({ng} - trunc({ng}/16)*16)} {m:trunc({nb}/16)} {m:trunc({nb} - trunc({nb}/16)*16)}}
{=(addth):{replace( ,):{replace(15,f):{replace(14,e):{replace(13,d):{replace(12,c):{replace(11,b):{replace(10,a):{addnum}}}}}}}}}
{=(mainurladd):https://dummyimage.com/100x100/{addth}} 
{=(desadd):{if({nr}>255):Too much **Red** added. You can add only `{m:255 - trunc({cn(-6)}*16 + {cn(-5)})}` Red|{if({ng}>255):Too much **Green** added. You can add only `{m:255 - trunc({cn(-4)}*16 + {cn(-3)})}` Green | {if({nb}>255):Too much **Blue** added. You can add only `{m:255 - trunc({cn(-2)}*16 + {cn(-1)})}` Blue | Entered color : ➡ `{largs(2)}`
New generated color : ⬇ #`{addth}`
	
```{prefix}{tagname} {add} {addth} {largs(3+)}```
for more type : `{prefix}{tagname} help`}}}}
}
	
{break({option}=={sub}):
{=(titleurlsub):https://dummyimage.com/100x100/{largs(2)}}
{=(sr):{m:trunc({cn(-6)}*16 + {cn(-5)}) - {red}}}
{=(sg):{m:trunc({cn(-4)}*16 + {cn(-3)}) - {green}}}
{=(sb):{m:trunc({cn(-2)}*16 + {cn(-1)}) - {blue}}}

{=(subnum):{m:trunc({sr}/16)} {m:trunc({sr} - trunc({sr}/16)*16)} {m:trunc({sg}/16)} {m:trunc({sg} - trunc({sg}/16)*16)} {m:trunc({sb}/16)} {m:trunc({sb} - trunc({sb}/16)*16)}}
{=(subth):{replace( ,):{replace(15,f):{replace(14,e):{replace(13,d):{replace(12,c):{replace(11,b):{replace(10,a):{subnum}}}}}}}}}
{=(mainurlsub):https://dummyimage.com/100x100/{subth}} 
{=(dessub):{if({sr}<0):Too much **Red** subtracted. You can subtract only `{m:trunc({cn(-6)}*16 + {cn(-5)})}` Red|{if({sg}<0):Too much **Green** subtracted. You can subtract only `{m:trunc({cn(-4)}*16 + {cn(-3)})}` Green | {if({sb}<0):Too much **Blue** subtracted. You can subtract only `{m:trunc({cn(-2)}*16 + {cn(-1)})}` Blue | Entered color : ➡ `{largs(2)}`
New generated color : ⬇ #`{subth}`
	
```{prefix}{tagname} {sub} {subth} {largs(3+)}```
for more type : `{prefix}{tagname} help`}}}}
}
	
{break({option}=={ran}):
{=(icon):{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}}
{=(footericon):{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}}
{=(imghex):{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}}
{=(thumbhex):{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}}
{=(iconurl):https://dummyimage.com/100x100/{icon}}
{=(footerurl):https://dummyimage.com/100x100/{footericon}}
{=(imghexurl):https://dummyimage.com/100x100/{imghex}}
{=(thumbhexurl):https://dummyimage.com/100x100/{thumbhex}}
	
{=(desran):⬆ `#{icon}`
➡ `#{thumbhex}`
⬇ `#{imghex}`
⬅ `#{embedc}`
for more type : `{prefix}{tagname} help`}
}
	
{break({option}=={dec}):
{=(decnum):{m:trunc(({cn(-6)}*16^5)+({cn(-5)}*16^4)+({cn(-4)}*16^3)+({cn(-3)}*16^2)+({cn(-2)}*16^1)+({cn(-1)}*16^0))}}
{=(desdec):Your decimal color code : `{decnum}`
for more type : `{prefix}{tagname} help`}
}
	
{break({option}==help):
{=(titlehelp):List of commands available}
{=(deshelp):1️⃣ Convert hex colour value to RGB
```{prefix}{tagname} {htr} <COLOUR>```
2️⃣ Convert RGB to hex
```{prefix}{tagname} {hex} <RED> <GREEN> <BLUE>```
3️⃣ Convert hex to decimal
```{prefix}{tagname} {dec} <COLOUR>```
4️⃣ Add RGB values to hex colour
```{prefix}{tagname} {add} <COLOUR> <RED> <GREEN> <BLUE>```
5️⃣ Subtract RGB values from hex colour
```{prefix}{tagname} {sub} <COLOUR> <RED> <GREEN> <BLUE>```
6️⃣ Generate 5 Random colours
```{prefix}{tagname} {ran}```
7️⃣ help
```{prefix}{tagname} help```
	
Support **Carl** ❤
https://www.patreon.com/carlbot}
}

Embed

1 line
{"color": 5198940, "image": {"url": "{if({option}=={htr}):{mainurlr}|{if({option}=={hex}):{mainurlh}|{if({option}=={add}):{mainurladd}|{if({option}=={sub}):{mainurlsub}|{if({option}=={ran}):{imghexurl}|}}}}}"}, "author": {"name": "{if({option}=={ran}):Random Colous|}", "icon_url": "{if({option}=={ran}):{iconurl}|}"}, "footer": {"text": "{if({option}=={ran}):#{footericon}|👈 #{embedc}}", "icon_url": "{if({option}=={ran}):{footerurl}|}"}, "thumbnail": {"url": "{if({option}=={add}):{titleurladd}|{if({option}=={sub}):{titleurlsub}|{if({option}=={ran}):{thumbhexurl}|}}}"}, "description": "{if({option}=={htr}):{desr}|}\n{if({option}=={hex}):{desh}|}\n{if({option}=={add}):{desadd}|}\n{if({option}=={sub}):{dessub}|}\n{if({option}=={ran}):{desran}|}\n{if({option}=={dec}):{desdec}|}\n{if({option}==help):{deshelp}|}\n{if({contains({option}):{htr} {hex} {add} {sub} {ran} {dec} help}==false):Incorrect option try `{prefix}{tagname} help`}"}
Raw JSON
{
  "id": 91352,
  "created_at": "2019-11-21T19:42:03.000Z",
  "tag_name": "col",
  "nsfw": false,
  "owner_id": "522065540575920128",
  "uses": 100,
  "description": "List of commands available\nConvert hex colour to RGB\nConvert RGB colour to HEX\nConvert HEX colour to Decimal\nAdd RGB values to Hex colour\nSubtract RGB values from Hex colour\nGenerate 5 Random colours",
  "restricted": false,
  "shared": true,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "603563219180716052",
  "sharer": "522065540575920128",
  "content": "{=(comment):You can set below options as per your need}\n{=(tagname):col}\n{=(comment):Prefix you use}\n{=(prefix):!}\n{=(comment):hex to rgb option name}\n{=(htr):rgb}\n{=(comment):rgb to hex option name}\n{=(hex):hex}\n{=(comment):hex to decimal option name}\n{=(dec):dec}\n{=(comment):Add option name}\n{=(add):add}\n{=(comment):Subtract option name}\n{=(sub):sub}\n{=(comment):Random option name}\n{=(ran):ran}\n\n\n{=(largs):{lower:{replace(#,):{args}}}}\n{=(option):{largs(1)}}\n{=(red):{largs(3)}}\n{=(green):{largs(4)}}\n{=(blue):{largs(5)}}\n{=(cs):{replace(, ):{largs(2)}}}\n{=(cn):{replace(f,15):{replace(e,14):{replace(d,13):{replace(c,12):{replace(b,11):{replace(a,10):{cs}}}}}}}}\n{=(hl):0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f}\n{=(embedc):{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}}\n{embed(color):#{embedc}}\n\n\n{break({option}=={htr}):\n{=(desr):Your RGB value : `{m:trunc({cn(-6)}*16 + {cn(-5)})}, {m:trunc({cn(-4)}*16 + {cn(-3)})}, {m:trunc({cn(-2)}*16 + {cn(-1)})}`\nfor more type : `{prefix}{tagname} help`}\n{=(mainurlr):https://dummyimage.com/100x100/{cs(-6)}{cs(-5)}{cs(-4)}{cs(-3)}{cs(-2)}{cs(-1)} }\n}\n\t\n{break({option}=={hex}):\n{=(hexnum):{m:trunc({largs(2)}/16)} {m:trunc({largs(2)} - trunc({largs(2)}/16)*16)} {m:trunc({largs(3)}/16)} {m:trunc({largs(3)} - trunc({largs(3)}/16)*16)} {m:trunc({largs(4)}/16)} {m:trunc({largs(4)} - trunc({largs(4)}/16)*16)} }\n{=(rth):{replace( ,):{replace(15,f):{replace(14,e):{replace(13,d):{replace(12,c):{replace(11,b):{replace(10,a):{hexnum}}}}}}}}}\n{=(desh):Your hex code : `#{rth}`\nfor more type : `{prefix}{tagname} help`}\n{=(mainurlh):https://dummyimage.com/100x100/{rth}}\n}\n\t\n{break({option}=={add}):\n{=(titleurladd):https://dummyimage.com/100x100/{largs(2)}}\n{=(nr):{m:trunc({cn(-6)}*16 + {cn(-5)}) + {red}}}\n{=(ng):{m:trunc({cn(-4)}*16 + {cn(-3)}) + {green}}}\n{=(nb):{m:trunc({cn(-2)}*16 + {cn(-1)}) + {blue}}}\n{=(addnum):{m:trunc({nr}/16)} {m:trunc({nr} - trunc({nr}/16)*16)} {m:trunc({ng}/16)} {m:trunc({ng} - trunc({ng}/16)*16)} {m:trunc({nb}/16)} {m:trunc({nb} - trunc({nb}/16)*16)}}\n{=(addth):{replace( ,):{replace(15,f):{replace(14,e):{replace(13,d):{replace(12,c):{replace(11,b):{replace(10,a):{addnum}}}}}}}}}\n{=(mainurladd):https://dummyimage.com/100x100/{addth}} \n{=(desadd):{if({nr}>255):Too much **Red** added. You can add only `{m:255 - trunc({cn(-6)}*16 + {cn(-5)})}` Red|{if({ng}>255):Too much **Green** added. You can add only `{m:255 - trunc({cn(-4)}*16 + {cn(-3)})}` Green | {if({nb}>255):Too much **Blue** added. You can add only `{m:255 - trunc({cn(-2)}*16 + {cn(-1)})}` Blue | Entered color : ➡ `{largs(2)}`\nNew generated color : ⬇ #`{addth}`\n\t\n```{prefix}{tagname} {add} {addth} {largs(3+)}```\nfor more type : `{prefix}{tagname} help`}}}}\n}\n\t\n{break({option}=={sub}):\n{=(titleurlsub):https://dummyimage.com/100x100/{largs(2)}}\n{=(sr):{m:trunc({cn(-6)}*16 + {cn(-5)}) - {red}}}\n{=(sg):{m:trunc({cn(-4)}*16 + {cn(-3)}) - {green}}}\n{=(sb):{m:trunc({cn(-2)}*16 + {cn(-1)}) - {blue}}}\n\n{=(subnum):{m:trunc({sr}/16)} {m:trunc({sr} - trunc({sr}/16)*16)} {m:trunc({sg}/16)} {m:trunc({sg} - trunc({sg}/16)*16)} {m:trunc({sb}/16)} {m:trunc({sb} - trunc({sb}/16)*16)}}\n{=(subth):{replace( ,):{replace(15,f):{replace(14,e):{replace(13,d):{replace(12,c):{replace(11,b):{replace(10,a):{subnum}}}}}}}}}\n{=(mainurlsub):https://dummyimage.com/100x100/{subth}} \n{=(dessub):{if({sr}<0):Too much **Red** subtracted. You can subtract only `{m:trunc({cn(-6)}*16 + {cn(-5)})}` Red|{if({sg}<0):Too much **Green** subtracted. You can subtract only `{m:trunc({cn(-4)}*16 + {cn(-3)})}` Green | {if({sb}<0):Too much **Blue** subtracted. You can subtract only `{m:trunc({cn(-2)}*16 + {cn(-1)})}` Blue | Entered color : ➡ `{largs(2)}`\nNew generated color : ⬇ #`{subth}`\n\t\n```{prefix}{tagname} {sub} {subth} {largs(3+)}```\nfor more type : `{prefix}{tagname} help`}}}}\n}\n\t\n{break({option}=={ran}):\n{=(icon):{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}}\n{=(footericon):{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}}\n{=(imghex):{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}}\n{=(thumbhex):{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}{#:{hl}}}\n{=(iconurl):https://dummyimage.com/100x100/{icon}}\n{=(footerurl):https://dummyimage.com/100x100/{footericon}}\n{=(imghexurl):https://dummyimage.com/100x100/{imghex}}\n{=(thumbhexurl):https://dummyimage.com/100x100/{thumbhex}}\n\t\n{=(desran):⬆ `#{icon}`\n➡ `#{thumbhex}`\n⬇ `#{imghex}`\n⬅ `#{embedc}`\nfor more type : `{prefix}{tagname} help`}\n}\n\t\n{break({option}=={dec}):\n{=(decnum):{m:trunc(({cn(-6)}*16^5)+({cn(-5)}*16^4)+({cn(-4)}*16^3)+({cn(-3)}*16^2)+({cn(-2)}*16^1)+({cn(-1)}*16^0))}}\n{=(desdec):Your decimal color code : `{decnum}`\nfor more type : `{prefix}{tagname} help`}\n}\n\t\n{break({option}==help):\n{=(titlehelp):List of commands available}\n{=(deshelp):1️⃣ Convert hex colour value to RGB\n```{prefix}{tagname} {htr} <COLOUR>```\n2️⃣ Convert RGB to hex\n```{prefix}{tagname} {hex} <RED> <GREEN> <BLUE>```\n3️⃣ Convert hex to decimal\n```{prefix}{tagname} {dec} <COLOUR>```\n4️⃣ Add RGB values to hex colour\n```{prefix}{tagname} {add} <COLOUR> <RED> <GREEN> <BLUE>```\n5️⃣ Subtract RGB values from hex colour\n```{prefix}{tagname} {sub} <COLOUR> <RED> <GREEN> <BLUE>```\n6️⃣ Generate 5 Random colours\n```{prefix}{tagname} {ran}```\n7️⃣ help\n```{prefix}{tagname} help```\n\t\nSupport **Carl** ❤\nhttps://www.patreon.com/carlbot}\n}",
  "embed": "{\"color\": 5198940, \"image\": {\"url\": \"{if({option}=={htr}):{mainurlr}|{if({option}=={hex}):{mainurlh}|{if({option}=={add}):{mainurladd}|{if({option}=={sub}):{mainurlsub}|{if({option}=={ran}):{imghexurl}|}}}}}\"}, \"author\": {\"name\": \"{if({option}=={ran}):Random Colous|}\", \"icon_url\": \"{if({option}=={ran}):{iconurl}|}\"}, \"footer\": {\"text\": \"{if({option}=={ran}):#{footericon}|👈 #{embedc}}\", \"icon_url\": \"{if({option}=={ran}):{footerurl}|}\"}, \"thumbnail\": {\"url\": \"{if({option}=={add}):{titleurladd}|{if({option}=={sub}):{titleurlsub}|{if({option}=={ran}):{thumbhexurl}|}}}\"}, \"description\": \"{if({option}=={htr}):{desr}|}\\n{if({option}=={hex}):{desh}|}\\n{if({option}=={add}):{desadd}|}\\n{if({option}=={sub}):{dessub}|}\\n{if({option}=={ran}):{desran}|}\\n{if({option}=={dec}):{desdec}|}\\n{if({option}==help):{deshelp}|}\\n{if({contains({option}):{htr} {hex} {add} {sub} {ran} {dec} help}==false):Incorrect option try `{prefix}{tagname} help`}\"}",
  "last_fetched": "2026-10-20T20:43:40.207Z"
}