Common Web Color Pallet formats?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Common Web Color Pallet formats?

Post by JAB Creations »

I'm interested in becoming aware of any common web color pallet formats that are available online mostly intended to be compatible for import/export.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Common Web Color Pallet formats?

Post by onion2k »

What's a "web colour palette format"?
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: Common Web Color Pallet formats?

Post by JAB Creations »

Basically any plain text format that contains hexadecimal color values. I'm just interested in what formats are being used/popular.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Common Web Color Pallet formats?

Post by onion2k »

You mean like #FFFFFF, #FFF, and FFFFFF? And rgb(255,255,255) if you count CSS stuff.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: Common Web Color Pallet formats?

Post by JAB Creations »

Not RGB, just hex.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: Common Web Color Pallet formats?

Post by superdezign »

Then unless we're misunderstanding your question, then you've answered it for yourself.

As long as RGB is limited to 256 possible values for each attribute, hex code will be the standard.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: Common Web Color Pallet formats?

Post by JAB Creations »

Hex color values stored in a file format, I don't see how this is difficult to understand?

Here is an XML example...

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><color>ffffff</color><color>000</color><color>46f223</color><color>123</color>
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Common Web Color Pallet formats?

Post by VladSun »

What about google-ing it? I did it ...
http://www.w3.org/TR/CSS21/syndata.html#color-units
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Common Web Color Pallet formats?

Post by onion2k »

JAB Creations wrote:Hex color values stored in a file format
What would you use a file like that for?
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: Common Web Color Pallet formats?

Post by JAB Creations »

All I'm asking if any one knows about existing color pallet formats. Maybe I should ask this question in a more multimedia oriented forum.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Common Web Color Pallet formats?

Post by Eran »

User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Common Web Color Pallet formats?

Post by pickle »

There is no standard "colour palette" format. Palettes can be used in a variety of ways (designing in Photoshop, put into CSS), so there's no real standard (XML or otherwise) format for communicating a colour palette used for the web.

There are web-safe colour palettes if that's what you want.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: Common Web Color Pallet formats?

Post by JAB Creations »

Yes thanks, that's going roughly in the right direction.

But to give it the umph it needs it looks like this would be most handy...
http://www.hping.org/aco2html/

...and yes that is why I asked about formats being plural. :wink:
Post Reply