[RESOLVED]How to genarte Hexadecimal color Codes!?

Hi let asume that I have this hexadecimal code: #3399FF,

Now I want to generate all Darker/lighter shades of this code. Example:

  #050F1A
  #0A1F33
  #0F2E4C
  #143D66
  #1A4C80
  #1F5C99
  #246BB2
  #297ACC
  #2E8AE6
  #3399FF
#47A3FF
#5CADFF
#70B8FF
#85C2FF
#99CCFF
#ADD6FF
#C2E0FF
#D6EBFF
#EBF5FF

#FFFFFF

Try To visit The below link:

http://www.paulirish.com/2009/random-hex-color-code-snippets/

Hi you can find here just put the color code you are using then it will reflect the color wich you are using and its darker shade too.

check this

http://www.2createawebsite.com/build/hex-colors.html

hope this will help you.

Maybe this will help:

TextBox1.BackColor = ColorTranslator.FromHtml("#ff0000");
TextBox2.BackColor = ColorTranslator.FromHtml("#8f0000");

This sets the background color of textbox1/2 to different reds. Maybe you can use some loop to change the ff/8f; that is construct the color string using a loop…

Hi Hamiti,

For your issue ,please refer to the link below which may give you a right direction:

http://stackoverflow.com/questions/5092808/how-do-i-randomly-generate-html-hex-color-codes-using-javascript

Best Regards,

Kevin Shen.

Leave a Reply