I have color code like 0xff3a9bda, 0xff73bbf3. I really don’t know about this color type as I know that these are NOT RGB, aRGB, HSB, or HEX.
As I am working on web application, my problem is, I can get color code with JavaScript in RGB and HTML color code for any color and I want to convert this color to above specified color type code.
Could anybody please give me an idea or soluton for this?
Are you sure this isn’t RGBA ?
0xff3a9bdawould bergba(255,58,155,0.85)(RGBA) orrgba(58,155,218,1)(ARGB)You can do the conversion like this:
Or like this:
Try here: http://jsfiddle.net/gX6ds/1/
Convert
#RRGGBBto this format:Convert R, G, B values to this format: