8. There are several socks of black, white, and yellow colors. To ensure you can form two pairs of the same color in the dark, you need to take out at least $\qquad$ socks (for example: one pair black and one pair yellow does not meet the requirement).
【Analysis】(4-1)×3+1=10 (only)

将上面的文本翻译成英文，请保留源文本的换行和格式，直接输出翻译结果。 

【Analysis】(4-1)×3+1=10 (only)