This is an Atari Lynx colour palette generator. Input colours are scaled down from 16,777,216 web colours to the 4,096 possible colours that the Lynx can display (two bytes per channel to one byte per channel).
There are two arrays generated. The first array is expected to be passed to the tgi_setpalette() function. The second array is expected to be passed to the setpallete() function from Alex Thissen's tutorial. Use only one of the arrays, depending on how you set your palette.
Enter 16 HTML colour codes in the text box below and click Generate.