Code:
awk ' BEGIN {
A[236,199, 32]=200
A[236, 32,199]=200
A[236,218, 32]=200
A[236,237, 32]=200
A[236,227, 32]=200
A[236,225,222]=200
A[236,229, 32]=200
A[236,199,199]=200
A[236,207, 32]=200
A[236,237,209]=200
A[236,207, 32]=200
A[236,237,209]=200
A[236,195, 32]=200
A[236,199,227]=200
A[236,228, 32]=200
A[236,225, 32]=200
A[236,202, 32]=200
A[236, 32,218]=200
A[236, 32,225]=200
A[236,237,199]=200
A[236,212, 32]=200
A[236, 32,209]=200
A[236, 32,237]=200
A[236,230, 32]=200
A[236, 32,210]=200
A[236,222,199]=200
A[236,199,230]=200
A[236,207,218]=200
A[236,225,225]=200
A[236,211, 32]=200
A[236,220,194]=203
A[236,209,200]=203
}
{ A[++c] = $1 }
END {
for(i=1;i<c;i++)
if((A[i] SUBSEP A[i+1] SUBSEP A[i+2]) in B) A[i]=B[A[i],A[i+1],A[i+2]]
}