Page 1
Page 1
Started By
Message

Sorting a list of hex color codes by spectrum

Posted on 2/8/18 at 5:54 pm
Posted by Tiger022
Bozeman, Montana
Member since Jan 2010
455 posts
Posted on 2/8/18 at 5:54 pm
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.
Posted by tom
Baton Rouge
Member since Jun 2007
8152 posts
Posted on 2/8/18 at 6:20 pm to
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.
Posted by Bestbank Tiger
Premium Member
Member since Jan 2005
70790 posts
Posted on 2/10/18 at 11:58 am to
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.
Posted by Dam Guide
Member since Sep 2005
15497 posts
Posted on 2/10/18 at 4:42 pm to
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/18 at 4:43 pm
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