Posted by
Message
Tiger022
LSU Fan
Bozeman, Montana
Member since Jan 2010
441 posts

Sorting a list of hex color codes by spectrum
Does anyone know how to do this? Many articles I've found online require some coding/programming knowledge (which I don't have).

Thanks in advance.


tom
Baton Rouge
Member since Jun 2007
6760 posts

re: Sorting a list of hex color codes by spectrum
Hex is just base 16 so: 0-9 are 0-9 (just like decimal), 10 = A, 11 = B, 12 = C, 13 = D, 14 = E and 15 = F.

so 1F = 16 + 15 = 31
22 = 32 + 2 = 34

The color values are R G B. Each color gets 2 hex digits. So FF0000 is red, 00FF00 is green, 0000FF is blue.

FFFFFF is white and 000000 is black, so 880000 is just a darker red than FF0000.

Mixing them can get a little complicated if you aren't used to it (remember complimentary colors.)

Play around on this site and you should get the hang of it.


Bestbank Tiger
Tulane Fan
The Landmass
Member since Jan 2005
40771 posts

re: Sorting a list of hex color codes by spectrum
If you want to do it in a spreadsheet you can use a formula to create a second column with the middle two numbers and a third column with the last two numbers.

LINK

Then you can sort by any of the three columns or a combination of two columns.


Dam Guide
New Orleans Saints Fan
Nooga
Member since Sep 2005
9784 posts
 Online 

re: Sorting a list of hex color codes by spectrum
If you have 8 digits, that indicates AARRGGBB, with AA being the alpha channel and it is used for transparency. FF is fully opaque.

Seen some programs put the AA last too.
This post was edited on 2/10 at 4:43 pm


Replies (0)
Replies (0)
10
first pageprev pagePage 1 of 1next pagelast page
refresh

Back to top

logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram