Hi,
suppose you have a reference list of colours:
list = RandomColor[30]
Then you have a random colour to identify:
inputcolor = RandomColor[]
This gives you the index of the closest colour in the reference list:
indexnearst = Flatten[Position[list, Nearest[list, inputcolor][[1]]]][[1]]
(*24*)
If you wan to identify the RGB values of that reference colour you can use:
List @@ list[[indexnearst]]
(*{0.687419, 0.556168, 0.166387}*)
Cheers,
Marco