Has this been done before? My searches were all for naught.
I'm interested in it as it might be something I'd use in a planned
future project. Seems like a good idea. Something that may very well
end up somewhere in the project its self if done well. How could you
store in in the database? It's 24bit so maybe 3 (one for each of RGB)
8bit fields would do the trick? Unfortunately creating you're own
Fields is undocumented at the moment but I'm sure you could reverse
engineer it without too much trouble.
I currently do something similar in wxPython apps, using my own
ColourGridCellEditor/Renderer classes. We store colors in the database
as CHAR(11) RGB strings: "204,153,102". Perhaps you could subclass
Django's CommaSeparatedIntegerField?