how do you stores a color codes with a color names?

ex:
#-> give a triplet (*,*,*), * in 0..255 : (255,255,0)
#-> give a name for the color (255, 255, 0) : yellow
#-> added (yellow,16776960) to the color database

like...
what is a easier way to create a program with color database for turtle?