I need to get each hexadecimal color in jpgs (or another format). I don't know if this is possible in PS by automating the process somehow, but ideally I'd like to create the image in let's say #ffffff and have the computer go through all the colors and create a jpg for each file.
This is done pretty easily with ImageMagick's primitive draw command.
The following command should output a 100px x 100px red image.
convert -size 100x100 xc:white -fill "rgb(255,0,0)" \ -draw "rectangle 0,0 100,100" FF0000.jpg
Use whatever command line scripting you're familiar with to automate this and loop it over all 16.7 million possible RGB colors. The variables changed with each iteration would be your color within
rgb() and the filename at the end.