Do you have a green one?

Literal

Green-color [of-の] exists [question-か].

緑色の uses の as nominalizer ('a green one'). The の-nominalizer for 'the X one' is highly productive in Japanese — 赤いの ('the red one'), 大きいの ('the big one'), 私の ('mine'). A natural shopping-register question.